Let's say I have a data frame
| A | B | C |
|---|---|---|
| A1 | R3 | P5 |
| A2 | R2 | P4 |
| A2 | NaN | P4 |
| A1 | NaN | NaN |
I want to fill in information for the 3rd and 4th rows from the 2nd and 1st rows since column A values match those two rows. The expected data frame is as follows:
| A | B | C |
|---|---|---|
| A1 | R3 | P5 |
| A2 | R2 | P4 |
| A2 | R2 | P4 |
| A1 | R3 | P5 |
Can you please help me with it?