Skip to content

Commit f16e04b

Browse files
committed
Revert "Changing lib.pyx to highlight an issue with astype_unicode (not a fix)"
This reverts commit 3fb43a9.
1 parent 3fb43a9 commit f16e04b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/_libs/lib.pyx

+1-4
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def astype_intsafe(ndarray[object] arr, new_dtype):
552552

553553
@cython.wraparound(False)
554554
@cython.boundscheck(False)
555-
def astype_unicode(arr: ndarray, skipna: bool=True) -> ndarray[object]:
555+
def astype_unicode(arr: ndarray, skipna: bool=False) -> ndarray[object]:
556556
"""
557557
Convert all elements in an array to unicode.
558558

@@ -574,9 +574,6 @@ def astype_unicode(arr: ndarray, skipna: bool=True) -> ndarray[object]:
574574
Py_ssize_t i, n = arr.size
575575
ndarray[object] result = np.empty(n, dtype=object)
576576

577-
# BUG skipna should be True but it is not
578-
print(f'skipna value: {skipna}')
579-
580577
for i in range(n):
581578
arr_i = arr[i]
582579

0 commit comments

Comments
 (0)