how to delete nan in df from row without losing the whole row?

Noel Harris :

G'day, how can I drop the nan values without losing the whole row? This is how my df looks like.

enter image description here

I have tried the pandasdf = schule.dropna() But this deleted everything in the rows.

But I have to keep the values, because at the end, I want them to go upwards.

enter image description here

Mohit Sharma :

it might help. you can try it !!!! enter image description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=11513&siteId=1