I have a dataframe like this:
Corp | TDS | VVT | SOAR |
---|---|---|---|
Steam | 3429.0 | 450 | |
Steam | 1365 | ||
Bliz | 3425.1 | 11 | |
Bliz | 353.3 | 34 | |
Tesla | 18 | ||
Tesla | 2243.3 | 32 | |
OYV | 15 | ||
OYV | 16 |
What is the best way to replace emptiness in the columns with the same value from another row if the Corp value is equal?
The result should be like this:
Corp | TDS | VVT | SOAR |
---|---|---|---|
Steam | 3429.0 | 450 | |
Steam | 3429.0 | 1365 | |
Bliz | 3425.1 | 34 | 11 |
Bliz | 353.3 | 34 | 11 |
Tesla | 2243.3 | 18 | |
Tesla | 2243.3 | 32 | |
OYV | 15 | 16 | |
OYV | 15 | 16 |