Skip to content
Advertisement

Create Pandas date column from fix starting date and offset days as integer colum

I have the following one-column Pandas data frame:

JavaScript

Here the integers are number of days counted from a constant predefined date:

JavaScript

Now I want to have a column with dates (calculated as START_DATE + the respective num_days) like this:

JavaScript

I have tried this:

JavaScript

but no success:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement