import pandas as pd
date_stngs = '2008-12-20', '2008-12-21', '2008-12-22', '2008-12-23'
a = pd.Series([pd.to_datetime(date) for date in date_stngs])
a
In Pandas how do I convert a string of date strings to datetime objects and put them in a DataFrame?