how to drop none in pandas code example
Example 1: if none in column remove row
import pandas as pd
df = df[pd.notnull(df['Gender'])]
Example 2: drop column with nan values
fish_frame = fish_frame.dropna(axis = 1, how = 'all')
import pandas as pd
df = df[pd.notnull(df['Gender'])]
fish_frame = fish_frame.dropna(axis = 1, how = 'all')