Skip to content

Commit

Permalink
describe custom target value and components in aggregate_time()
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Jan 21, 2020
1 parent 6391bf4 commit 944e7b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/source/tutorials/subannual_time_resolution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
"source": [
"The function also supports directly appending the aggregated data to the original `IamDataFrame`. You can also pass a a list of variables, or call [variables()](https://pyam-iamc.readthedocs.io/en/stable/api.html#pyam.IamDataFrame.variables) to perform the aggregation on all timeseries data.\n",
"\n",
"A user can also manually set the \"target\" sub-annual value and the components to be aggregated;\n",
"for example, this can then be used to process an aggregate of hourly data to monthly values.\n",
"\n",
"You will notice that the following cell returns a larger dataset compared to calling the same function above."
]
},
Expand All @@ -99,7 +102,8 @@
"metadata": {},
"outputs": [],
"source": [
"df.aggregate_time(df.variables(), append=True)"
"df.aggregate_time(df.variables(), value='year', components=['summer', 'winter'],\n",
" append=True)"
]
},
{
Expand Down

0 comments on commit 944e7b5

Please sign in to comment.