If I use type
on a DataFrame
which I know has a datetime index, I get:
In [17]: type(df.index)
Out[17]: pandas.tseries.index.DatetimeIndex
but when I test it, I get:
In [18]: type(df.index) == 'pandas.tseries.index.DatetimeIndex'
Out[18]: False
I know I assumed the type of type is a string, but I really don't know what else to try, and searching has resulted in nothing.