0

Giving the following code (in Jupyter notebook):

import pandas as pd
data_max = pd.to_datetime('2022-03-16 00:54:30')
data_min = pd.to_datetime('2022-03-14 22:35:22')
print((data_max - data_min).seconds)

I get the following answer:

8348

which is obviously wrong because it misses whole 24h. What would be the reason?

0 Answers0