-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Reindex casting to object in certain situation #48190
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
Changes from 5 commits
08d7dbe
bb8a83f
74db786
09184bd
8640bef
b63988f
662c970
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5345,6 +5345,9 @@ def _needs_reindex_multi(self, axes, method, level) -> bool_t: | |
and method is None | ||
and level is None | ||
and not self._is_mixed_type | ||
and not ( | ||
len(self.dtypes) == 1 and is_extension_array_dtype(self.dtypes.iloc[0]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be cleaner to define for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added a ndim check |
||
) | ||
) | ||
|
||
def _reindex_multi(self, axes, copy, fill_value): | ||
|
Uh oh!
There was an error while loading. Please reload this page.