Skip to content
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

refactor: Remove direct pandas import #6476

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Dec 13, 2024

For now, to see what it would take not to do any direct imports of pandas.

This is doing the minimum effort. Probably, some of the functions that depend on pandas can be rewritten to not need to depend on it.

Import time comparison with Tuna (python -X importtime -c 'import holoviews' 2> tuna.log && tuna tuna.log):

After:
image

Before:
image

@hoxbro hoxbro force-pushed the remove_direct_pandas branch from 7fc6d1d to dc063df Compare December 13, 2024 16:26
@@ -23,13 +23,26 @@ class PandasAPI:
...
"""

pd = None # Set when PandasInterface.applies is successful
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not seem to work with test-gpu 🤷‍♂️

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.

1 participant