oemof / demandlib

Creating heat and power demand profiles from annual values.
https://oemof.org
MIT License
55 stars 38 forks source link

Fix FutureWarnings #57

Closed maurerle closed 3 months ago

maurerle commented 5 months ago

To Reproduce The following snippet produces warnings using python 3.11 and pandas 2.2.1

from demandlib.bdew import ElecSlp
e_slp = ElecSlp(2019)

demandlib had some pandas warnings:

These are fixed through this commit.

p-snft commented 3 months ago

Hi @maurerle, thanks for your fixes (and sorry for letting this uncommented for such a long time). I just realised that demandlib needs some love (to have a maintenance release) and so I am very happy that you cared for some of the changes needed to maintain compatibility.

If you like, don't forget to add your name to the list of authors.

pep8speaks commented 3 months ago

Hello @maurerle! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 208:1: W293 blank line contains whitespace Line 208:1: W391 blank line at end of file