To work with time series data in pandas, we use a DatetimeIndex as the index for our DataFrame (or Series) . Let’s see how to do this with our OPSD data set. First, we use the read_csv() function to read the data into a DataFrame, and then display its shape.10 Oca 2019