Convert data to a time series data Python code example Example: data series to datetime pd.to_datetime(your_series)