← time_agg operator page · time/time_agg/period_from/quarter_to_year
pandas ✅ · DuckDB ✅
time_agg("A", "Q", SC_1) with SC_1 = 2012Q2: the optional periodIndFrom given, Q, the duration of the operand.
Time aggregation: the syntax time_agg ( periodIndTo { , periodIndFrom } { , op } { , first | last } ), and "It is only possible to convert smaller duration values to larger duration values", as a quarter to a year is.
DS_r = 2012, a Time_Period: the second quarter of 2012 is in the year 2012.
DS_r := time_agg("A", "Q", SC_1);
| SC_1 |
|---|
| 2012Q2 |
{
"scalars": [
{"name": "SC_1", "type": "Time_Period"}
]
}
{
"scalars": [
{"name": "DS_r", "type": "Time_Period", "value": "2012"}
]
}