← exp operator page · numeric/exp/ds/manual_ex_1
pandas ✅ · DuckDB ✅
exp on every measure of DS_1, which has an Integer and a Number measure.
Exponential, Example 1, output verbatim: "The operator exp returns e (base of the natural logarithm) raised to the op-th power."
Me_1 5, 8 and 2 give 148.413, 2980.95 and 7.38905; Me_2 0.7545, 13.45 and 1.87 give 2.126547, 693842.3 and 6.488296, as the page prints them, shortened.
DS_r := exp(DS_1);
| Id_1 | Id_2 | Me_1 | Me_2 |
|---|---|---|---|
| 10 | A | 5 | 0.7545 |
| 10 | B | 8 | 13.45 |
| 11 | A | 2 | 1.87 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "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": "Number", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Me_1 | Me_2 |
|---|---|---|---|
| 10 | A | 148.413 | 2.126547 |
| 10 | B | 2980.95 | 693842.3 |
| 11 | A | 7.38905 | 6.488296 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Me_1", "type": "Number", "role": "Measure"},
{"name": "Me_2", "type": "Number", "role": "Measure"}
]
}
]
}