1In [7]: df
2Out[7]:
3 0 1
40 NaN NaN
51 -0.494375 0.570994
62 NaN NaN
73 1.876360 -0.229738
84 NaN NaN
9
10In [8]: df.fillna(0)
11Out[8]:
12 0 1
130 0.000000 0.000000
141 -0.494375 0.570994
152 0.000000 0.000000
163 1.876360 -0.229738
174 0.000000 0.000000
1For one column using pandas:
2df['DataFrame Column'] = df['DataFrame Column'].fillna(0)