-
-
Notifications
You must be signed in to change notification settings - Fork 247
[WIP] Fix pd warning #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Fix pd warning #683
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested if this works? I think, if inplace
is removed, the change has to be assigned to a variable.
Haven't tested it yet......will do so soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the proposed changes, which yield expected errors. Removing the deprecated inplace
argument must go hand in hand with assigning the change, i.e.
self._surface_points.df['surface'] = self._surface_points.df['surface'].cat.add_categories(surface_list)
self._orientations.df['surface'] = self._orientations.df['surface'].cat.add_categories(surface_list)
should do the trick.
Thanks for testing! I will change the PR accordingly and try to fix the other obsolete inplace places as well |
fixes #682 |
Description
Please include a summary of the changes.
Relates to #682