SyntaxFix
Write A Post
Hire A Developer
Questions
You could do this, where td is your series of timedeltas. The division converts the nanosecond deltas into day deltas, and the conversion to int drops to whole days.
td
import numpy as np (td / np.timedelta64(1, 'D')).astype(int)