Skip to content

Commit d716472

Browse files
Update pandas/core/construction.py
1 parent fcfefdb commit d716472

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/construction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,7 @@ def sanitize_array(
613613

614614
if (
615615
subarr is data
616-
or subarr.dtype == "str"
617-
and subarr.dtype.storage == "python"
616+
or (subarr.dtype == "str" and subarr.dtype.storage == "python")
618617
) and copy:
619618
subarr = subarr.copy()
620619

0 commit comments

Comments
 (0)