← persistent_assignment operator page · general/persistent_assignment/identity/manual_ex_1
pandas ✅ · DuckDB ✅
DS_r <- DS_1: a dataset assigned as it is to a persistent result.
Persistent assignment, Example 1, output verbatim: "The result re is a persistent Data Set that has the same data structure as the Operand."
DS_r has the structure and the data points of DS_1.
DS_r <- DS_1;
| Id_1 | Id_2 | Me_1 | Me_2 |
|---|---|---|---|
| 2013 | Belgium | 5 | 5 |
| 2013 | Denmark | 2 | 10 |
| 2013 | France | 3 | 12 |
| 2013 | Spain | 4 | 20 |
{
"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": "Me_1", "type": "Integer", "role": "Measure", "nullable": true},
{"name": "Me_2", "type": "Integer", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Me_1 | Me_2 |
|---|---|---|---|
| 2013 | Belgium | 5 | 5 |
| 2013 | Denmark | 2 | 10 |
| 2013 | France | 3 | 12 |
| 2013 | Spain | 4 | 20 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Time_Period", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Me_1", "type": "Integer", "role": "Measure"},
{"name": "Me_2", "type": "Integer", "role": "Measure"}
]
}
]
}