Skip to content

Commit e2c26e5

Browse files
committed
revert changes to Index constructor
1 parent a040fd2 commit e2c26e5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/core/indexes/base.py

-5
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,6 @@ def __new__(
405405
)
406406
# other iterable of some kind
407407
subarr = com.asarray_tuplesafe(data, dtype=object)
408-
409-
if isinstance(name, list) and len(name) == 1:
410-
# GH 36655: if name == [List[str]] we want List[str]
411-
name = name[0]
412-
413408
return Index(subarr, dtype=dtype, copy=copy, name=name, **kwargs)
414409

415410
"""

0 commit comments

Comments
 (0)