Skip to content

Conversation

@opnagroup
Copy link

Correctly lines 1333:1334 to be compatible with pandas 3 and address futurewarning:

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.

Correctly lines 1333:1334 to be compatible with pandas 3 and address futurewarning:

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.
@maread99
Copy link
Collaborator

maread99 commented Apr 7, 2025

This is a duplicate of PR #262 which also address a further deprecation warning.

@maread99
Copy link
Collaborator

Fixed in v2.4.0 by #316.

@maread99 maread99 closed this May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants