brunobeeee / drinklog

A habit tracker for tracking water intake.
0 stars 0 forks source link

Pandas Error in `views.py` #88

Closed brunobeeee closed 4 weeks ago

brunobeeee commented 4 weeks ago

I can see the following error in the server logs:

drinklog-app  |  /app/base/views.py:213: FutureWarning:
drinklog-app  | 
drinklog-app  | A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
drinklog-app  | 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.
drinklog-app  | 
drinklog-app  | 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.

This has to be invesitgated further...