wind-python / windpowerlib

The windpowerlib is a library to model the output of wind turbines and farms.
https://oemof.org/
MIT License
332 stars 105 forks source link

Fix pandas version bug #51

Closed birgits closed 5 years ago

birgits commented 5 years ago

labels attribute of pandas MultiIndex is deprecated as of pandas version 0.24. This was fixed in this commit. However, using codes instead of labels seems to only work with pandas version >0.24. To allow using older pandas versions and avoid incompatibilities with oemof, that only allows pandas < 0.24 I added a work around in two places of the windpowerlib. This also fixes #50.