I have a NumPy array of strings of dates like below. I'm trying to select all dates <'1/31/2020' but I also see the dates that are in February? my code is as below
for date1 in dates[dates <= '2020-01-31']:
print(date1)
and the data looks like this array of dates
1/1/2020
1/2/2020
1/3/2020
1/4/2020
1/5/2020
2/4/2020
.
.
.
3/31/2020