I have a dataframe with multiple columns. Many of the cells have NaN values that I want to drop but only that cell, not the entire row or even the column just that cell. The DataFrame looks something like this
Column1 | Column2 | Column3 | ... |ColumnX
1 | NaN | NaN | ....| NaN
2 | NaN | NaN | ....| NaN
.
.
.
12 | 1 | NaN | ....| NaN
13 | 2 | NaN | ....| NaN
.
.
.
21 | 11 | 1 | ....| NaN
22 | 12 | 2 | ....| NaN
and so on.
The final output should look like
Column1 | Column2 | Column3 | ... |ColumnX
1 | 1 | 1 | ... | 1
2 | 2 | 2 | ... | 2
.
.
.
12 | 12 | 11 | ....| 11
13 | 13 | 12 | ....| 12
.
.
.
21 | 21 | 21 | ....| 21
22 | 22 | 22 | ....| 22
Any idea if this can be achieved?