关于Pandas的基本用法_02
import numpy as npimport pandas as pddates = pd.date_range('20210329',periods=6)df = pd.DataFrame(np.arange(24).reshape(6, 4), index=dates,columns=['a', 'b', 'c', 'd'])print(df)print(df['a'])# 等价形式print(df.a)# 对指定索引的列进行输出print(df[0:3])# 通过切片选取第零.