-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Improve performance in read_csv with numeric index col #44610
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
Conversation
the benchmark runner failed, not really sure why |
I think I have used the wrong base class, changed it |
greenish now |
@@ -518,6 +518,7 @@ Performance improvements | |||
- Performance improvement in :meth:`Series.to_frame` (:issue:`43558`) | |||
- Performance improvement in :meth:`Series.mad` (:issue:`43010`) | |||
- Performance improvement in :func:`merge` (:issue:`43332`) | |||
- Performance improvement in :func:`read_csv` when ``index_col`` was set with a numeric column (:issue:`44158`) |
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.
i think this is a regression compared to 1.3.x. would be ok backporting.
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.
This is equally slow on 1.2.5 and 1.3.4, so don't think we should backport
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.
oh ok
thanks @phofl very nice |
The isin was calling the np.in1d and was checking against a bunch of strings causing the performance issues