How can I make a python numpy arange of datetime
from datetime import datetime, timedelta t = np.arange(datetime(1985,7,1), datetime(2015,7,1), timedelta(days=1)).astype(datetime) The key point here is to use astype(datetime), otherwise the result will be datetime64.