例: 这个是根据 列1 == '旧值'这个条件,将列2指定为新的值
列1 == '旧值'
列2
df.loc[df[(df.列1 == '旧值')].index.tolist(),'列2'] = '新的值'