You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR fixes `Index.difference` in following ways:
- [x] Fixes `name` preservation by correctly evaluating the name of two input objects, closes#14019
- [x] Fixes `is_mixed_with_object_dtype` handling that will resolve incorrect results for `CategoricalIndex`, closes#14022
- [x] Raises errors for invalid input types, the error messages are an exact match to pandas error messages for parity.
- [x] Introduce a `Range._try_reconstruct_range_index` that will try to re-construct a `RangeIndex` out of an `Int..Index` to save memory- this is on parity with pandas. closes#14013
Authors:
- GALI PREM SAGAR (https://github.com/galipremsagar)
Approvers:
- Lawrence Mitchell (https://github.com/wence-)
URL: #14053
Describe the bug
When a difference is calculated with an object that has no name, the result should have the name of the Index object itself.
Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
The text was updated successfully, but these errors were encountered: