Skip to content

Commit

Permalink
Merge pull request #648 from PyPSA/misc/deprecations
Browse files Browse the repository at this point in the history
[DNMY] Address pandas deprecation of date_parser for pandas.read_csv
  • Loading branch information
fneum authored Jan 2, 2024
2 parents 1417ed7 + e097aa4 commit ceddecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ PyPSA-Eur 0.8.1 (27th July 2023)
(https://github.com/PyPSA/pypsa-eur/pull/672)


* Addressed deprecation warnings for ``pandas=2.0``. ``pandas=2.0`` is now minimum requirement.

PyPSA-Eur 0.8.0 (18th March 2023)
=================================

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_electricity_demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def rename(s):
return s[: -len(pattern)]

return (
pd.read_csv(fn, index_col=0, parse_dates=[0])
pd.read_csv(fn, index_col=0, parse_dates=[0], date_format="%Y-%m-%dT%H:%M:%SZ")
.tz_localize(None)
.filter(like=pattern)
.rename(columns=rename)
Expand Down

0 comments on commit ceddecd

Please sign in to comment.