I have a pandas dataframe that currently looks like this
|Eriksson| NaN | Boeser | NaN |
| NaN | McDavid| NaN | NaN |
| ... | ... | ... | ... |
I don't care whether its converted to a Numpy array or it remains a Data Frame, but I want an output object where the rows just consist of the non NaN values like this:
|Eriksson| Boeser|
|McDavid | NaN |
(NaN because of the mismatched dimensions.) Is there any way to do this?