dni do int

import numpy as np

(td / np.timedelta64(1, 'D')).astype(int)
Prickly Platypus