-
-
Notifications
You must be signed in to change notification settings - Fork 19k
REGR: Fix conversion of mixed dtype DataFrame to numpy str #35473
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 2 commits
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 |
---|---|---|
|
@@ -847,7 +847,7 @@ def _interleave(self, dtype=None, na_value=lib.no_default) -> np.ndarray: | |
# Give EAs some input on what happens here. Sparse needs this. | ||
if isinstance(dtype, SparseDtype): | ||
dtype = dtype.subtype | ||
elif is_extension_array_dtype(dtype): | ||
elif is_extension_array_dtype(dtype) or is_dtype_equal(dtype, str): | ||
|
||
dtype = "object" | ||
|
||
result = np.empty(self.shape, dtype=dtype) | ||
|
Uh oh!
There was an error while loading. Please reload this page.