How do I convert the datatype of a column from integer to timedelta days format? I tried doing it but got the following error.
new_monthly5['APPROVED LEAVES'] = new_monthly5['APPROVED
LEAVES']+timedelta(days=1)
TypeError: unsupported operand type(s) for +: 'numpy.ndarray' and 'Timedelta'
Also, I tried it another way but still it didn't work.
pd.to_timedelta(new_monthly5['APPROVED LEAVES'], unit='D')