Skip to content

Commit 4b1b9b8

Browse files
committed
BUG: Modify the comment format.
1 parent 5af2972 commit 4b1b9b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/dtypes/astype.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ def _astype_nansafe(
126126
raise ValueError(msg)
127127

128128
if arr.dtype == object and dtype == bool:
129-
# If the dtype is bool and the array is object, we need to replace the False and True of the object type in the ndarray with the bool type
130-
# to ensure that the type conversion is correct
129+
# If the dtype is bool and the array is object, we need to replace
130+
# the False and True of the object type in the ndarray with the
131+
# bool type to ensure that the type conversion is correct
131132
arr[arr == "False"] = np.False_
132133
arr[arr == "True"] = np.True_
133134
return arr.astype(dtype, copy=copy)

0 commit comments

Comments
 (0)