-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Slow autocompletion in python/ipython console for large DataFrame containing strings #37947
Comments
pls |
Actually, it only happens if I type |
This is also an issue on master. The reason is that |
Now, in the meantime, @flcong can you check the version of jedi that you are using? ( |
Thank you. It's the latest version I guess: 0.17.2, but |
There has been improvements in Jedi, but there are still cases in which Jedi is still really slow: davidhalter/jedi#1696 And as it seems this won't improve much in the future: davidhalter/jedi#1059 (comment) Seems like pandas is a bit too complex too handle, and the current implementation of Jedi isn't designed with that in mind. |
Is this actionable on our end? |
Sounds like the most recent versions of jedi has somewhat ameliorated this issue, and it's not to evident what pandas could do since auto-completion is handled by jedi. Closing, but happy to reopen if someone could identify what in pandas would need fixing to enhance the performance. |
I'm not sure if this is the right place to ask, but it seems the autocompletion in python or ipython console is especially slow for large DataFrame with strings (object) in it.
For example, consider the following two DataFrames:
By typing
df1.<TAB>
in the interactive python/ipython session, the autocompletion is quick, but it takes a very long time fordf2.<TAB>
to finish (it gets stucked for many seconds).I'm not sure if this is due to different implementation of pandas for DataFrames containing numbers vs. strings (object), or this is due to issues in the interactive python/ipython session.
The text was updated successfully, but these errors were encountered: