Skip to content

Commit 71f7adc

Browse files
committed
Remove check for nested lists in scalars in string_.py first try
1 parent 9979a8d commit 71f7adc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/arrays/string_.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,6 @@ def _from_sequence(
655655
# zero_copy_only to True which caused problems see GH#52076
656656
scalars = np.array(scalars)
657657
# 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]
660658
result = lib.ensure_string_array(scalars, na_value=na_value, copy=copy)
661659

662660
# Manually creating new array avoids the validation step in the __init__, so is

0 commit comments

Comments
 (0)