我有一个DataFrame,它的索引是DatetimeIndex的类型,它看起来如下:
DatetimeIndex(
['2003-10-17', '2003-10-21', '2003-10-22', '2003-10-23',
'2003-10-24', '2003-10-27', '2003-10-28', '2003-10-29',
'2003-10-30', '2003-10-31',
...
'2017-08-04', '2017-08-07', '2017-08-08', '2017-08-09',
'2017-08-10', '2017-08-11', '2017-08-14', '2017-08-15',
'2017-08-16', '2017-08-17'
],
dtype='datetime64[ns, UTC]', name=u'DATE', length=3482, freq=None
)
我想知道如何获得2017-08-04
的索引计数位置。