import pandas as pd

def create_data():
    dates = pd.date_range('2010-01-01T00:30', '2013-01-04T23:30', freq='H')
iso_dates = dates.map(lambda x: x.strftime('%Y-%m-%dT%H:%M:%S'))
Convert list of datestrings to datetime very slow with Python strptime