I have the following dataset: https://i.stack.imgur.com/YPAE1.jpg
I want to create a new column that is the subtraction between time_exit and time_entry. However, when I try the code:
df[['tempo']] = df['time_exit'] - df['time_entry']
The result is: TypeError: unsupported operand type(s) for -: 'str' and 'str'
If I do:
df[['tempo']] = df[['time_exit']] - df[['time_entry']]
The result is: ValueError: Columns must be same length as key.
But doing a describe on both, they have the SAME count, that is 381185.
I'm lost.