There are two fields in the DataFrame:

Время Время с 10:54:55 10:30:00 11:49:15 11:30:00 17:42:45 17:30:00 18:55:46 18:30:00 20:04:01 20:00:00 

The data type in the Object fields.

How to get the difference of two columns ????

 df['Время'] - df ['Время с'] 

    1 answer 1

    To get the date / time difference, you must cast both columns to datetime type:

     In [119]: pd.to_datetime(df['Время']) - pd.to_datetime(df['Время с']) Out[119]: 0 00:24:55 1 00:19:15 2 00:12:45 3 00:25:46 4 00:04:01 dtype: timedelta64[ns]