Woring with datetime objects in Numpy and Pandas and core Python
import datetime
e = np.array(['2017-01-01', '2017-01-02', '2017-01-03'],dtype='datetime64')
e = np.array(['2017-01-01', '2017-01-02', '2017-01-03'],dtype='datetime64')
t = e[0]
day = t.astype(datetime.datetime).isoweekday()
Comments
Post a Comment