pandas read_csv date parsing: Using the date_format keyword

pandas read_csv date parsing: Using the date_format keyword

Reading a CSV into Python Pandas, and parse_dates doesn’t recognize the format? Pass the date_format keyword arg:

df = pd.read_csv(filename,
        parse_dates=['x', 'y'],
        date_format='%Y-%m-%d %H:%M:%S')

All strftime codes work!