-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
BugTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suitegood first issue
Milestone
Description
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
assert len(pd.testing.makeMultiIndex(k=10)) == 4
pandas/pandas/_testing/__init__.py
Lines 491 to 492 in 0976c4c
def makeMultiIndex(k=10, names=None, **kwargs): | |
return MultiIndex.from_product((("foo", "bar"), (1, 2)), names=names, **kwargs) |
Problem description
All other testing.make*Index
methods take a parameter k
which lets you specify the length. makeMultiIndex
explicitly takes this parameter but does nothing with it.
Expected Output
assert len(pd.testing.makeMultiIndex(k=10)) == 10
Metadata
Metadata
Assignees
Labels
BugTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suitegood first issue