We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9979a8d commit 71f7adcCopy full SHA for 71f7adc
pandas/core/arrays/string_.py
@@ -655,8 +655,6 @@ 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]
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