odstraňte řádky nebo sloupce s hodnotou NaN
df.dropna() #drop all rows that have any NaN values
df.dropna(how='all')
drop sloupce s nan pandy
>>> df.dropna(axis='columns')
name
0 Alfred
1 Batman
2 Catwoman
vyčistěte nas ze sloupu pandy
>>> df.dropna()
name toy born
1 Batman Batmobile 1940-04-25
drop sloupec s hodnotami nan
fish_frame = fish_frame.dropna(axis = 1, how = 'all')