I need to compute and add the timestamp difference between two columns in seconds in the given dataframe
df =
A B
Wed Jul 31 07:09:48 EDT 2024 Wed Jul 31 07:04:35 EDT 2024
Wed Jul 31 07:26:31 EDT 2024 Wed Jul 31 07:21:04 EDT 2024
Need to add column C with timestamp difference of A and B in seconds
A B C
Wed Jul 31 07:09:48 EDT 2024 Wed Jul 31 07:04:35 EDT 2024
Wed Jul 31 07:26:31 EDT 2024 Wed Jul 31 07:21:04 EDT 2024
Any suggestions on how to compute this ?