ix 混合索引


raw_datas #DateFrame
diff_index_list = [] #行index
#多行所有列索引
raw_datas.ix[diff_index_list]
#多行一列索引
raw_datas.ix[diff_index_list, df.columns[1]]
#多行多列索引
raw_datas.ix[diff_index_list,[df.columns[0], df.columns[1]]]

posted on 2018-01-04 21:10  TMatrix52  阅读(201)  评论(0编辑  收藏  举报

导航