Posts by WNG • 101 points
1 post
-
0
votes1
answer65
viewsA: Select specific day in an np.array containing datetime
T[T.strftime("%Y-%m-%d")=='2006-01-01'] or T[((T-np.datetime64('01-01-2006')).days==0)] should work
1 post
0
votes1
answer65
viewsT[T.strftime("%Y-%m-%d")=='2006-01-01'] or T[((T-np.datetime64('01-01-2006')).days==0)] should work