numpy pandas基础知识笔记7.pandas选择数据
选择指定某一列的数据例:import pandas as pdimport numpy as npdates = pd.date_range('20210101',periods=6)df = pd.DataFrame(np.random.randn(6,4),index = dates,columns = ['a','b','c','d'])print(df['a'])输出:2021-01-01 -0.4158022021-01-02 0.4903482021-01-...