📌  相关文章
📜  如何在python代码示例中用null替换零

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

代码示例3
df2.loc[df2['Weight'] == 0,'Weight'] = np.nan
df2.loc[df2['Height'] == 0,'Height'] = np.nan
df2.loc[df2['BootSize'] == '0','BootSize'] = np.nan
df2.loc[df2['SuitSize'] == '0','SuitSize'] = np.nan