I have two variables in the data set beginning date (format datetime64[ns]) and end date(format datetime64[ns]). I'm using following code to get the dates between beginning date and end date.
pd.date_range(start = data['beginning_date'], end = data['end_date'], freq = 'D')
but it's throwing following error.
cannot convert input to timestamp
why I'm getting above error. I tried changing as below, but it doesn't work.
pd.date_range(start = data['beginning_date'], end = data['end_date'], freq = 'D').astype('datetime')
and also i want each day as separate record, for example: beginning_date = 01APR2015 and end_date = 30APR2015, i want each day as separate record as below.
01APR2015
02APR2015 etc
How can I get it as a separate record?
Thanks in Advance.