Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy timedelta object has no attribute days

>>> x = np.timedelta64(2069211000000000, 'ns')
>>> days = x.astype('timedelta64[D]')
>>> days / np.timedelta64(1, 'D')
23
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #timedelta #object #attribute #days
ADD COMMENT
Topic
Name
9+7 =