I have a pandas dataframe with a column like:
In [96]: data[\'difference\'] Out[96]: 0 NaT 1 1 days 21:34:30 2 0 days 16:57:36 3 0 d
According to pandas documentation, you can extract days using astype method of timedelta64 object and the result type is float64.
astype
timedelta64
float64
td.astype('timedelta64[D]')