pandas数据结构 1.生成一维矩阵模拟数据 import pandas as pdimport numpy as nps = pd.Series([1,2,3,4,np.nan,9,9])s2 = pd.date_range('20181201',periods=6)#periods周期 2.生成二维矩阵模拟数据 import pandas as pdimport numpy as np#(1)创建二维矩阵df = pd.DataFrame([[1,2,3],[4,5,6],[7,8,9]…