Replace pdvega with Holoviews for Compatibility with Pandas Version >= 2.0.0 #238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there!
TL;DR
I noticed that pdvega/vgplot no longer compatible with pandas and replaced it with the corresponding holoviews pieces since this looks to me like the most reasonable alternative to pdvega right now.
(holoviews allows interactiv plotting and multiple backends like matplotlib or plotly).
You might need to take a look at the notebook outputs with nbviewer, github doesn't render the holoviews output in preview mode:
https://github.com/DanielBrkr/eicu-code/tree/replace-pdvega/notebooks
Details
Here's an example of the portions that cause errors:
Traceback:
.
.
.
Deprecation in
pandas-dev/pandas#30193 (2019)
and removal of pandas.core.index in Version 2.0.0 (April 2023)
https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html#removal-of-prior-version-deprecations-changes
pdvega is no longer developed since June 2020 other than that so i think it's a good idea to replace it anyway.
Feel free to merge it if it's any help and let me know if I need to change anything !