-------------------------------------------------------------------------------------------------------------------------------------------------------------
# data_range()函数的使用 import pandas as pd pd.date_range("2021-1-1",periods=10,freq="W")
DatetimeIndex(['2021-01-03', '2021-01-10', '2021-01-17', '2021-01-24', '2021-01-31', '2021-02-07', '2021-02-14', '2021-02-21', '2021-02-28', '2021-03-07'], dtype='datetime64[ns]', freq='W-SUN')