-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: fix inplace operations for EAs with non-EA arg #37986
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
@arw2019 can you add a release note to the regression section of doc\source\whatsnew\v1.1.5.rst |
"ser1, ser2, expected_add, expected_sub, expected_mul", | ||
( | ||
[ | ||
Series([1], dtype="Int64"), |
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 do the Series construction inside the test and just have the dtypes in the parameters?
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.
Done
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.
comment by @jbrockmendel
also needs a 1.1.5 release note
), | ||
) | ||
def test_series_inplace_ops(dtype1, dtype2, dtype_expected, dtype_mul): | ||
|
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.
GH ref to either this PR or original issue
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.
Done
doc/source/whatsnew/v1.1.5.rst
Outdated
@@ -17,7 +17,7 @@ Fixed regressions | |||
- Regression in addition of a timedelta-like scalar to a :class:`DatetimeIndex` raising incorrectly (:issue:`37295`) | |||
- Fixed regression in :meth:`Series.groupby` raising when the :class:`Index` of the :class:`Series` had a tuple as its name (:issue:`37755`) | |||
- Fixed regression in :meth:`DataFrame.loc` and :meth:`Series.loc` for ``__setitem__`` when one-dimensional tuple was given to select from :class:`MultiIndex` (:issue:`37711`) | |||
- | |||
- Fixed regression in inplace operations on :class:``ExtensionArray`` with NumPy array argument (:issue:`37910`) |
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.
is it on EA or on Series with EA dtype?
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.
it's Series with EA dtype
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.
yeah let's reword this, its an inplace operation on a Series with an EA dtype with a numpyt dtyped operand
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.
Rewritten
doc/source/whatsnew/v1.1.5.rst
Outdated
@@ -17,7 +17,7 @@ Fixed regressions | |||
- Regression in addition of a timedelta-like scalar to a :class:`DatetimeIndex` raising incorrectly (:issue:`37295`) | |||
- Fixed regression in :meth:`Series.groupby` raising when the :class:`Index` of the :class:`Series` had a tuple as its name (:issue:`37755`) | |||
- Fixed regression in :meth:`DataFrame.loc` and :meth:`Series.loc` for ``__setitem__`` when one-dimensional tuple was given to select from :class:`MultiIndex` (:issue:`37711`) | |||
- | |||
- Fixed regression in inplace operations on :class:``ExtensionArray`` with NumPy array argument (:issue:`37910`) |
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.
yeah let's reword this, its an inplace operation on a Series with an EA dtype with a numpyt dtyped operand
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
thanks @arw2019 |
@meeseeksdev backport 1.1.x |
This comment has been minimized.
This comment has been minimized.
…tions for EAs with non-EA arg
…EAs with non-EA arg (#38035) Co-authored-by: Andrew Wieteska <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff