-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: RangeIndex concatenating incorrectly a single object of length 1 #39439
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
AnnaDaglis
commented
Jan 27, 2021
- closes ValueError when concatenating a length-one, reversed object #39401
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
doc/source/whatsnew/v1.3.0.rst
Outdated
@@ -294,6 +294,7 @@ Indexing | |||
- Bug in setting ``timedelta64`` values into numeric :class:`Series` failing to cast to object dtype (:issue:`39086`) | |||
- Bug in setting :class:`Interval` values into a :class:`Series` or :class:`DataFrame` with mismatched :class:`IntervalDtype` incorrectly casting the new values to the existing dtype (:issue:`39120`) | |||
- Bug in incorrectly raising in :meth:`Index.insert`, when setting a new column that cannot be held in the existing ``frame.columns``, or in :meth:`Series.reset_index` or :meth:`DataFrame.reset_index` instead of casting to a compatible dtype (:issue:`39068`) | |||
- Bug in :meth:`RangeIndex._concat` where a single object of length 1 was concatenated incorrectly (:issue:`39401`) |
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 there a user-facing method that we can reference instead of RangeIndex._concat?
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.
RangeIndex.append method is making use of RangeIndex._concat. We can reference it instead.
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 ex small comments. ping on green.
@jreback All green! Good to merge? |
thanks @AnnaDaglis very nice. keep em coming! |