一个DataFrame 其中有空值NaN,将其替换为0:
df.fillna(0)
如果将第一列替换为0:
df[1].fillna(0,inplace=True)
posted on 2017-07-01 10:24 老段的博客 阅读(6852) 评论(0) 编辑 收藏 举报