I have a dataframe like this:
| action | application_id | interaction_time | notification_id | user_id |
|---|---|---|---|---|
| F | 1 | 4489200 | 79 | 3152 |
| F | 1 | 4388400 | 79 | 3633 |
| C | 0 | 4410000 | 78 | 655 |
| F | 0 | 4489200 | 72 | 6280 |
which interaction_time is in seconds, now I want to add a column to dataframe which is interation time add to especific time(like: 2021,9,21).
I used this code:
seconds=df["interaction_time"]
df['date'] = timedelta(seconds=df["interaction_time"]) + datetime.datetime(2019,6,1)
Finally I get this error:
unsupported type for timedelta seconds component: Series
how can I fixed it?
