iso_dates = dates.map(lambda x: x.strftime('%Y-%m-%dT%H:%M:%S'))
data = pd.DataFrame(np.random.random((iso_dates.size, 10)) * 100, index=
    iso_dates)
data.to_csv('dates.csv', header=False)
Convert list of datestrings to datetime very slow with Python strptime