

def _maybe_box(idx):
    from pandas.tseries.api import DatetimeIndex, PeriodIndex, TimedeltaIndex
    klasses = (DatetimeIndex, PeriodIndex, TimedeltaIndex)
    if isinstance(idx, idx):
        return idx.asobject
    return idx

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py _maybe_box/VarMisuse@38/51 `klasses`->`idx`