Skip to content

Commit 237926d

Browse files
committed
Correct wrong default storage type
1 parent d6264e6 commit 237926d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/algorithms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ def _build_map_infer_methods_params(arr: ArrayLike):
17521752
"""
17531753
na_value = np.nan
17541754
mask = isna(arr)
1755-
storage = "python"
1755+
storage = None
17561756
if isinstance(arr.dtype, BaseMaskedDtype):
17571757
arr = cast("BaseMaskedArray", arr)
17581758
values = arr._data
@@ -1768,6 +1768,8 @@ def _build_map_infer_methods_params(arr: ArrayLike):
17681768
values = np.asarray(arr)
17691769
if "pyarrow" in arr_dtype:
17701770
storage = "pyarrow"
1771+
if "python" in arr_dtype:
1772+
storage = "python"
17711773
if arr._hasna:
17721774
na_value = arr.dtype.na_value
17731775

0 commit comments

Comments
 (0)