涉及方法

loc[[行名],[列名]]
iloc[行索引序号, 列索引序号]

示例代码

  1. res_df = res_df.loc[:, ["列名1","列名2"]]
  2. res_df = res_df.iloc[0,:].region_id