📜  熊猫列表理解 - Python 代码示例

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

代码示例4
df['Flag2'] = ["Increase" if x > y  else "Decrease" for (x,y) in zip(df['nextsalary'],df['prevsalary'])]