Skip to content

Commit 358000f

Browse files
authored
typo
1 parent 889829a commit 358000f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/_libs/lib.pyx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,11 @@ cpdef ndarray[object] ensure_string_array(
758758
if not check_null(val):
759759
if coerce =="all" or coerce == "non-null":
760760
if not isinstance(val, np.floating):
761-
# f"{val}" is faster than str(val)
762-
result[i] = f"{val}"
763-
else:
764-
# f"{val}" is not always equivalent to str(val) for floats
765-
result[i] = str(val)
761+
# f"{val}" is faster than str(val)
762+
result[i] = f"{val}"
763+
else:
764+
# f"{val}" is not always equivalent to str(val) for floats
765+
result[i] = str(val)
766766
else:
767767
raise ValueError(f"Element {val} is not a string or valid null."
768768
"If you want it to be coerced to a string,"

0 commit comments

Comments
 (0)