-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
PERF: indexing #43274
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
PERF: indexing #43274
Conversation
nice cc @phofl |
can u run the indexing asvs and report here |
Really nice, good catch. |
also pls add a whatsnew note for 1.4 |
Could also go in 1.3.3, looks like this helps top regression here: https://simonjayhawkins.github.io/fantastic-dollop/#regressions?sort=3&dir=desc&branch=1.3.x |
Yeah good point, this check was added in 1.3 |
should I put the whatsnew in 1.3.3 fixed regression or under others? |
great yeah 1.3.3 is fine (add a perf section) |
doc/source/whatsnew/v1.3.3.rst
Outdated
|
||
Performance improvements | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
- Performance improvement for :meth:`DataFrame.__setitem__` |
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.
Could you clarify in which cases?
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.
Hi @phofl - updated. Let me know if this is fine.
side note: |
benchmarks have been re-run and gh-pages updated. |
doc/source/whatsnew/v1.3.3.rst
Outdated
|
||
Performance improvements | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
- Performance improvement for :meth:`DataFrame.__setitem__` with dataframes containing unique columns (:issue:`43274`) |
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 not specific enough. If key is any list-like or frame we don't hit this at all. Key has to be a scalar I think and value is not a df
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.
Updated. let me know how this looks
doc/source/whatsnew/v1.3.3.rst
Outdated
|
||
Performance improvements | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
- Performance improvement for :meth:`DataFrame.__setitem__` when the key or value is not a dataframe, or key is not list-like (:issue:`43274`) |
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.
:class:DataFrame
, otherwise lgtm
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.
updated
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.
lgtm. @phofl merge when ready.
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
- Performance improvement for :meth:`DataFrame.__setitem__` when the key or value is not a :class:`DataFrame`, or key is not list-like (:issue:`43274`) | ||
- | ||
- |
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.
We need a blank line, docs aren't building like that
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.
ah! I see. I was confused why the docs were consistently failing.
thx @debnathshoham |
Co-authored-by: Shoham Debnath <[email protected]>
* PERF: indexing.InsertColumns.time_assign_with_setitem * added whatsnew * more descriptive whatsnew * rectified whatsnew * added PR ref in whatsnew * clear whatsnew * suggested change * added blank line
Added a check as suggested in #39280 (comment)
Edit: