I have a dataframe that consists of something like this. (an example)
col1 col2 col3
0 1 2 1
1 2 4 2
2 3 6 3
3 4 nan nan <------
4 5 nan nan
5 6 12 nan
How can I replace row index of 3 with the first column row index 3 value?
The final result that I want is:
col1 col2 col3
0 1 2 1
1 2 4 2
2 3 6 3
3 4 4 4 <-----
4 5 nan nan
5 6 12 nan