I have this dataframe:
Artikel description nunber % av Price Price2
0 nummer NaN NaN NaN 100 st 100 st
1 20 aaaaaaaaaaaaaaaaaaaaa 28.0 0,03 % 21,25 12,
2 21 bbbbbbbbbbbbbbbbbbbbb 928.0 0,86 % 83,57 0,5
3 22 ccccccccccccccccccccc 44569.0 41,27 % 92,12 0,5
I want to combine the first two rows (and delete the Nan's) to end up like this:
Artikel nummer description nunber % av Price 100 st Price2 100 st
0 20 aaaaaaaaaaaaaaaaaaaaa 28.0 0,03 % 21,25 12,
1 21 bbbbbbbbbbbbbbbbbbbbb 928.0 0,86 % 83,57 0,5
2 22 ccccccccccccccccccccc 44569.0 41,27 % 92,12 0,5
I tried this solution: Pandas: combining header rows of a multiIndex DataFrame but I can't figure out how that would work with my data. I am a bit of a noob with Python.