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
1In [12]: df[1].fillna(0, inplace=True)
2Out[12]:
30 0.000000
41 0.570994
52 0.000000
63 -0.229738
74 0.000000
8Name: 1
9
10In [13]: df
11Out[13]:
12 0 1
130 NaN 0.000000
141 -0.494375 0.570994
152 NaN 0.000000
163 1.876360 -0.229738
174 NaN 0.000000