openclimatefix / nowcasting_dataset

Prepare batches of data for training machine learning solar electricity nowcasting data
https://nowcasting-dataset.readthedocs.io/en/stable/
MIT License
25 stars 6 forks source link

PV power warning #665

Open peterdudfield opened 2 years ago

peterdudfield commented 2 years ago

Detailed Description

Indexing a timezone-aware DatetimeIndex with a timezone-naive datetime is deprecated and will raise KeyError in a future version. Use a timezone-aware object instead.
selected_pv_power = self.pv_power.loc[start_dt:end_dt].dropna(axis="columns", how="any")

Context

This is when loading live pv data

Possible Implementation

Remove timezone from live dataframe index