Answers for "pandas add 2 days in datetime column"

0

pandas add days to date

## get the timestamp 5 days later the beginning one
from datetime import timedelta

pd.to_datetime('2020-11-28') + timedelta(days=5)

Timestamp('2020-12-05 00:00:00')
Posted by: Guest on April-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language