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
Fix gradio/components/dataframe.py not to import pandas.io
#7840
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/8fd4f803fb5726ac99b9e7ea340617519b19653e/gradio-4.23.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@8fd4f803fb5726ac99b9e7ea340617519b19653e#subdirectory=client/python" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
Nice clean up @whitphx !! |
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.
Nice speedup! Perhaps we should also lazy import pandas
itself?
Yes, I'm going to try it in another PR 👍 |
Description
Related to #7791
pandas.io
importsmatplotlib
internally. It takes a long time and makes #7157 less effective.This PR fixes it.
Performance assessment on Lite
main
(1a7c8d3)