I have a dF that has dates as its index, and I would like to add a new column 'delta' that shows the number of days between the date in the index and todays date.
I have:
dF['today'] = '2015-01-30'
dF['today'] = pd.to_datetime(dF['today'])
dF['tvalue']= dF.index
dF['delta'] = (dF['tvalue'] - dF['today'])
Obviously, this is not working. Any feedback?