import pandas as pd
创建测试对象
创建20行5列的随机数组成的 DataFrame 对象
df=pd.DataFrame(np.random.rand(20,5))
从可迭代对象 my_list 创建一个 Series 对象
my_list=[1,5,6,8,9] pd.Series(my_list)
增加一个日期索引
df.index = pd.date_range('2022/07/03', periods=df.shape[0])
创建随机数据集
df = pd.util.testing.makeDataFrame()
创建随机日期索引数据集
df = pd.util.testing.makePeriodFrame() df = pd.util.testing.makeTimeDataFrame()
创建随机混合类型数据集
df = pd.util.testing.makeMixedDataFrame()
accessKey:iEw1gpCnXDwT93YMVDb2G60my9ne81 accessSecret:xingxingdiandeng 上海测试