CADWRDeltaModeling / dms_datastore

Data download and management tools for continuous data for Pandas. See documentation https://cadwrdeltamodeling.github.io/dms_datastore/
https://cadwrdeltamodeling.github.io/dms_datastore/
MIT License
1 stars 0 forks source link

Pandas 3.0 warnings - will stop working in the future. #47

Open dwr-psandhu opened 4 months ago

dwr-psandhu commented 4 months ago

Warning that will change in pandas 3.0

d:\ProgramData\miniconda3\envs\dms_datastore\Lib\site-packages\dms_datastore\process_station_variable.py:113: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.

  station_df["agency_id"].fillna(station_df.station_id,inplace=True)