I can't seem to index rows using datetime index with pandas. Information on my dataframe shows that the index is datetimeindex:
<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 223 entries, 2013-10-29 to 2017-05-29
Data columns (total 6 columns):
Unnamed: 0 223 non-null float64
company 223 non-null object
date 223 non-null object
date_conv 223 non-null object
text 223 non-null object
title 223 non-null object
dtypes: float64(1), object(5)
memory usage: 17.2+ KB
But when I do this it returns 'key error'
df['2017-02-04']
Should I have index series name as "index" to make this work? Although the my df is using datetimeindex, the column name of the index is not 'index' it's 'date_conv'.