Skip to content

Commit 39b3c2a

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/_libs/lib.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,8 @@ def astype_unicode(arr: ndarray, skipna: bool=False) -> ndarray[object]:
577577
for i in range(n):
578578
arr_i = arr[i]
579579

580-
if checknull(arr_i):
581-
arr_i = "is_null"
582-
else:
583-
arr_i = "not_null"
580+
if not (skipna and checknull(arr_i)):
581+
arr_i = unicode(arr_i)
584582

585583
result[i] = arr_i
586584

0 commit comments

Comments
 (0)