1234567df.iloc[i]# 第i行数据new_df = df["col_name1", "col_name2", ...]# 返回列col_name1, col_name2, ...df.rename(columns={"old_col": "new_col"})# 对列名重命名df["col1"].max()# 列col1的最大值df["col1"].min()# 列col1的最小值new_df = df.drop_duplicates(subset=['col1', 'col2', ...], inplace=False)# 去除列col1, col2, ...的重复值。inplace若True则就地操作,无返回值。new_col = df["col1"].reindex()# 对col1列重编码,默认从0开始,也可传入特定的Index