IAMconsortium / pyam

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

support more flexible `weights` arguments in `compute.quantiles()` #718

Open gidden opened 1 year ago

gidden commented 1 year ago

At present compute.quantiles() as implemented in https://github.com/IAMconsortium/pyam/pull/686 is relatively strict in its weights argument, requiring a pd.Series with name weight. More flexible arguments could be provided (e.g., lists of correct length), but that functionality would need to be implemented and tested.