Skip to content

BUG: ndim and shape for MultiIndex are wrong #4842

Closed
@jtratner

Description

@jtratner
>>> from pandas import MultiIndex
>>> mi = MultiIndex.from_tuples(list(zip(range(10), range(10))))
>>> mi.shape
(0,)
>>> mi.ndim
1

I'd expect ndim to return 2 and shape to be (10, 2).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions