We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a505d35 commit 6f5c4d4Copy full SHA for 6f5c4d4
pandas/core/arrays/string_.py
@@ -655,8 +655,8 @@ def _from_sequence(
655
# zero_copy_only to True which caused problems see GH#52076
656
scalars = np.array(scalars)
657
# convert non-na-likes to str, and nan-likes to StringDtype().na_value
658
- if isinstance(scalars, list) and all(isinstance(x,list) for x in scalars):
659
- scalars =[str(x) for x in scalars]
+ if isinstance(scalars, list) and all(isinstance(x, list) for x in scalars):
+ scalars = [str(x) for x in scalars]
660
result = lib.ensure_string_array(scalars, na_value=na_value, copy=copy)
661
662
# Manually creating new array avoids the validation step in the __init__, so is
0 commit comments