how to generate a time series in python pandas based on start date and duration and time steps code example Example: data series to datetime pd.to_datetime(your_series)