Как удалить дату в кадре данных pandas
Как удалить дату в формате datetime 2022-06-20 14:59:02.559748+05:30 (14:59:02) #only time
df = pd.DataFrame(queryset)
df['duration'] = pd.to_datetime(df['stoptime']) - pd.to_datetime(df['starttime'])
print(df['duration'] ) # "0 days 00:00:09.892016" TO 00:00:09