Skip to content

Commit 26a6fb7

Browse files
committed
Correct values initialization problem
1 parent b90af02 commit 26a6fb7

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
@@ -1720,9 +1720,11 @@ def map_array(
17201720
if "pyarrow" in arr_dtype:
17211721
storage = "pyarrow"
17221722
if "date" in arr_dtype:
1723-
values = np.fromiter(arr._pa_array, dtype='O')
1723+
values = np.fromiter(arr._pa_array, dtype="O")
17241724
else:
17251725
values = np.asarray(arr)
1726+
else:
1727+
values = np.asarray(arr)
17261728
if arr._hasna:
17271729
na_value = arr.dtype.na_value
17281730
else:

0 commit comments

Comments
 (0)