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 dd616d3 commit 47a19afCopy full SHA for 47a19af
pandas/core/series.py
@@ -3690,7 +3690,7 @@ def f(x):
3690
from pandas.core.frame import DataFrame
3691
# GH 25959 we don't need to call tolist
3692
# if we've been given an ExtensionArray
3693
- if not isinstance(mapped, ExtensionArray):
+ if not is_extension_array_dtype(mapped.dtype):
3694
mapped = mapped.tolist()
3695
return DataFrame(mapped, index=self.index)
3696
else:
0 commit comments