Skip to content

Commit e8b979a

Browse files
author
Douglas Rudd
committed
Remove empty array check in .from_arrays, falling back to check in __new__
1 parent a5a5c58 commit e8b979a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/indexes/multi.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1080,9 +1080,7 @@ def from_arrays(cls, arrays, sortorder=None, names=None):
10801080
MultiIndex.from_product : Make a MultiIndex from cartesian product
10811081
of iterables
10821082
"""
1083-
if len(arrays) == 0:
1084-
raise ValueError('Must pass non-zero number of levels/labels')
1085-
elif len(arrays) == 1:
1083+
if len(arrays) == 1:
10861084
name = None if names is None else names[0]
10871085
return Index(arrays[0], name=name)
10881086

0 commit comments

Comments
 (0)