gridstatus
gridstatus copied to clipboard
Cannot localize tz-aware Timestamp, use tz_convert for conversions
Following error reported running locally on a mac, but not showing up
date_str = "20220722"
for m in markets:
print(iso.iso_id, m)
latest = iso.get_latest_lmp(m, nodes=nodes)
> assert isinstance(latest, pd.DataFrame)
isodata/tests/test_isos.py:251:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
isodata/miso.py:102: in get_latest_lmp
time = pd.to_datetime(time_str).tz_localize(self.default_timezone)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: Cannot localize tz-aware Timestamp, use tz_convert for conversions
pandas/_libs/tslibs/timestamps.pyx:1849: TypeError