

def to_datetime(self, dayfirst=False):
    '\n        For an Index containing strings or datetime.datetime objects, attempt\n        conversion to DatetimeIndex\n        '
    from pandas.tseries.index import DatetimeIndex
    if (self.inferred_type == 'string'):
        from dateutil.parser import parse
        parser = (lambda x: parse(x, dayfirst=parsed))
        parsed = lib.try_parse_dates(self.values, parser=parser)
        return DatetimeIndex(parsed)
    else:
        return DatetimeIndex(self.values)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index.to_datetime/VarMisuse@55/101 `dayfirst`->`parsed`