pandas的 loc 和 iloc 和作用是定位并筛选 DataFrame 中的数据, 并返回 DataFrame
loc 根据标签索引选择数据
df.loc[row_indexer, column_indexer]
iloc 根据整数位置索引选择数据
df.iloc[row_indexer, column_indexer]
df.loc[row_indexer, column_indexer]
df.iloc[row_indexer, column_indexer]