📜  pandas 过滤和更改值 - Python 代码示例

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

代码示例1
df.loc[df['dollars_spent'] > 0, 'purchase'] = 1