I'd like to drop all the rows containing a NaN values pertaining to a column. Lets assume I have a dataset like this:
Age Height Weight Gender
12 5'7 NaN M
NaN 5'8 160 M
32 5'5 165 NaN
21 NaN 155 F
55 5'10 170 NaN
I want to remove all the rows where 'Gender' has NaN values. The output i'd like:
Age Height Weight Gender
12 5'7 NaN M
NaN 5'8 160 M
21 NaN 155 F
Thanks in advance!