1、列名重命名 df.rename(columns={ 'A1':'B1'}, inplace = True) #“A1”列列名改为“B1” 2、将指定列的某值进行转换 df.loc[df.FV5=='ON',