rl-institut / oemof-B3

An open-source energy system model for Brandenburg/Berlin.
https://oemof-b3.readthedocs.io/
GNU Affero General Public License v3.0
9 stars 5 forks source link

Problem with NaN in aggregate_scalars #226

Closed jnnr closed 2 years ago

jnnr commented 2 years ago

The function aggregate_scalars https://github.com/rl-institut/oemof-B3/blob/dev/oemof_b3/tools/data_processing.py#L383 has problems with NaNs. If e.g. I aggregate scalar data by region and carrier contains NaNs, the result will show NaN for carrier in all lines.

henhuy commented 2 years ago

Shouldn't this be addressed by groupby parameter dropna (new in version 1.1.0)? I will check anyway