pandas convert datetime to time series code example Example: data series to datetime pd.to_datetime(your_series)