I have dataFrame, two columns:
- first is result['days'] int type,
- second is result['time'], datetime.time type. It's sum of time like 02:27:39
What I want is new column = result['time'] / result['days'] but I can't
unsupported operand type(s) for /: 'datetime.time' and 'int'
How can I do this?
A
datetime.timecannot be divided, but adatetime.timedeltacan:Output: