Let me briefly introduce the two commonly used data structures, series and daraframe in Python, which are defined by the Pandas module. The series is similar to dict in Python, but is structured, and dataframe is similar to a table in a database.
1.pandas basic data Structure-pandas. Series&pandas. DataFrame
the second method of defining Dataframe cannot set index manually, only the sequence can be generated automatically.
date_range (' 20180201 ', periods=8) defines the time series, which can be set using the Freq frequency: S=pd.date_range (' 20180101 ', periods=8,freq= ' h ')
the supported frequencies are S, Min, H, D, W, M, y, and the default is D
2.pandas viewing data
3.pandas General operation
It is best to use code to implement once, this can have a more intuitive effect, if you need more code instances or have any problems, you can private messages me. I hope to help you.
Quick start of the Pandas module in Python