Merge pull request #648 from PyPSA/misc/deprecations
[DNMY] Address pandas deprecation of date_parser for pandas.read_csv
This commit is contained in:
commit
ceddecd705
@ -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)
|
||||
=================================
|
||||
|
||||
|
@ -81,7 +81,7 @@ def load_timeseries(fn, years, countries, powerstatistics=True):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user