📜  在 pandas 列上创建条件语句 - Python 代码示例

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

代码示例2
df.loc[df['column name'] condition, 'new column name'] = 'value if condition is met'