Open zetinaricky opened 1 year ago
Thanks, I have that issue
Afirm, the added code at the start of the method removes the warning
Incidentally I edited the utils.py I found in /usr/local/lib/python3.9/dist-packages/ElexonDataPortal/dev
I had to ignore this section at the start of the file:
GNU nano 5.4 utils.py
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01-utils.ipynb (unless otherwise specified).
Thanks!
For anyone facing this issue that cannot limit the pandas version here's another fix you could to to avoid the "compare tz-naive and tz-aware datetime-like objects" error is to add the following lines of code in the ElexonDataPortal/dev/utils.py file. to the dt_rng_to_SPs method around line 120 to