I am trying to append a date to a timeseries data.
Following is the output of the timeseries data, named as timseries_data
:
timseries_data
<class 'pandas.tseries.index.DatetimeIndex'>
[2013-11-01 00:00:00, ..., 2014-02-15 00:00:00]
Length: 107, Freq: D, Timezone: None
I want to append to date series with 20140216
date. Currently I am using append command to update series. Code:
start_date=datetime.strptime(date_range[1],'%Y%m%d')
date.append(start_date)
But with this approach I am hitting this error :
ValueError: all the input arrays must have same number of dimensions
Can somebody suggest me any good ways to append date to timeseries data?