IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
226 stars 118 forks source link

Add method to set meta indicators from data #238

Closed danielhuppmann closed 5 years ago

danielhuppmann commented 5 years ago

It would be useful to have a generic df.set_meta_from_data() function, e.g.,

df.set_meta_from_data(name, method, column='value', **kwargs)

where

So the use case suggested by @znicholls for setting the peak temperature (see #237) could be implemented as

df.set_meta_from_data(variable='Temperature', name='Peak temperature', method='max')
danielhuppmann commented 5 years ago

closed via #241