📜  更新多行数据框 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:05.098000             🧑  作者: Mango

代码示例1
df.loc[df.strings.isin(["C", "D", "E"]), df.columns.difference(["strings"])] = 0
df
Out[82]: 
  price strings value
0     1       A     a
1     2       B     b
2     0       C     0
3     0       D     0
4     0       E     0