I have the following sample DataFrame:
a | b | c | 1 | 2 | 4 | 0 | null | null| null | 3 | 4 |
And I want to rep
df.fillna(0, subset=['a', 'b'])
There is a parameter named subset to choose the columns unless your spark version is lower than 1.3.1
subset