We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6aad17 commit 4e6cf04Copy full SHA for 4e6cf04
pandas/_libs/lib.pyx
@@ -757,6 +757,9 @@ cpdef ndarray[object] ensure_string_array(
757
if (
758
hasattr(arr, "dtype")
759
and arr.dtype.kind in "mM"
760
+ # TODO: we should add a custom ArrowExtensionArray.astype implementation
761
+ # that handles astype(str) specifically, avoiding ending up here and
762
+ # then we can remove the below check for `_pa_array` (for ArrowEA)
763
and not hasattr(arr, "_pa_array")
764
):
765
# dtype check to exclude DataFrame
0 commit comments