The date series is something like this:
df.d_num_active.head()
# result
0 191 days
1 49 days
2 273 days
3 287 days
4 634 days
Name: d_num_active, dtype: timedelta64[ns]
The problem:
>>> df.d_num_active.head().astype('timedelta64[D]')
ValueError: Cannot convert from timedelta64[ns] to timedelta64[D].
Supported resolutions are 's', 'ms', 'us', 'ns'`
The question is:
one the one hand, it's seemingly supposed to be OK according to this answer and this answer.
on the other hand dt.days
works:
df.d_num_active.head().dt.days
# result
0 191
1 49
2 273
3 287
4 634