ai-content-maker/.venv/Lib/site-packages/pandas/tests/util/test_make_objects.py

16 lines
253 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
"""
Tests for tm.makeFoo functions.
"""
import numpy as np
import pandas._testing as tm
def test_make_multiindex_respects_k():
# GH#38795 respect 'k' arg
N = np.random.randint(0, 100)
mi = tm.makeMultiIndex(k=N)
assert len(mi) == N