def makeFloatIndex(k=10, name=None):
    values = sorted(np.random.random_sample(k)) - np.random.random_sample(1)
    return Index(values * (10 ** np.random.randint(0, 9)), name=name)
dataset/ETHPy150Open pydata/pandas/pandas/util/testing.py/makeFloatIndex/original