← drop operator page · clause/drop/basic/manual_ex_1
pandas ✅ · DuckDB ✅
drop At_1: an attribute removed.
Removal of Components, Example 1, output verbatim: "The operator drops the specified Components and maintains all the other Components of the Data Set."
The three identifiers and Me_1, on the same data points.
DS_r := DS_1 [ drop At_1 ];
| Id_1 | Id_2 | Id_3 | Me_1 | At_1 |
|---|---|---|---|---|
| 2010 | A | XX | 20 | E |
| 2010 | A | YY | 4 | F |
| 2010 | B | XX | 9 | F |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Time_Period", "role": "Identifier", "nullable": false},
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Id_3", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Integer", "role": "Measure", "nullable": true},
{"name": "At_1", "type": "String", "role": "Attribute", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Id_3 | Me_1 |
|---|---|---|---|
| 2010 | A | XX | 20 |
| 2010 | A | YY | 4 |
| 2010 | B | XX | 9 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Time_Period", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Id_3", "type": "String", "role": "Identifier"},
{"name": "Me_1", "type": "Integer", "role": "Measure"}
]
}
]
}