I have a column of dates. They are all the same date. How do I add 1 extra day to every date value in that column?
Here is my code:
aday = dt.timedelta(days=1)
datetickerdf = pd.read_csv('datesandtickers.csv')
datetickerdf = pd.DataFrame(datetickerdf, columns=["ticker","date"])
datetickerdf['date'] = datetickerdf['date'] + aday
datetickerdf
I get this error: "unsupported operand type(s) for +: 'Timedelta' and 'str'"
How can I transform "aday" into something that can be used for the + operator? I want to add an extra day to all the dates in my column.