I have created an index with name 'dates' using pandas.date_range and I want to slice the 5th element from the Datetimeindex. How to slice the 5th element from it.
dates = pd.date_range(start = '1-Sep-2017',end = '15-Sep-2017')
DatetimeIndex(['2017-09-01', '2017-09-02', '2017-09-03', '2017-09-04',
'2017-09-05', '2017-09-06', '2017-09-07', '2017-09-08',
'2017-09-09', '2017-09-10', '2017-09-11', '2017-09-12',
'2017-09-13', '2017-09-14', '2017-09-15'],
dtype='datetime64[ns]', freq='D')