df.loc with NaN is not changing anything

后端 未结 0 1084
遇见更好的自我
遇见更好的自我 2020-12-05 07:14

What am I doing wrong here?

df.loc[(df[\'var1\'] == np.nan) & (df[\'var2\'] == np.nan) & (df[\'var3\'] >=0), \'var2\'] = 0 df.loc[(df[\'var1\'] == np.nan)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题