-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated using
importlib_resource
instead of pkg_resources
and pre…
…pare for later versions of `pandas` (#492) Fixes #491 - [x] Updated using `importlib_resource` instead of `pkg_resources` - Reason: `pkg_resources` is going to be deprecated. - [x] Refactor `pandas` related code to smoothly transition to future versions and handle deprecation warnings. - [Pandas PR](https://github.com/pandas-dev/pandas/pull/54710/files#diff-55001624a0932c1b6cee2e6ddb65dea85c1faf0dee84812c0ca0c32916a71438): ``` "Downcasting behavior in `replace` is deprecated and " "will be removed in a future version. To retain the old " "behavior, explicitly call " "`result.infer_objects(copy=False)`. " "To opt-in to the future " "behavior, set " "`pd.set_option('future.no_silent_downcasting', True)`", ``` - `A value is trying to be set on a copy of a slice from a DataFrame` - `.apply(max)` => `.apply(np.maximum.reduce)` - `UserWarning: Boolean Series key will be reindexed to match DataFrame index.`
- Loading branch information
Showing
5 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters