remove a key if the value is none from df code example
Example 1: if none in column remove row
import pandas as pd
df = df[pd.notnull(df['Gender'])]
Example 2: drop rows with null date in pandas
# It will erase every row (axis=0) that has "any" Null value in it.
df = df.dropna(how='any',axis=0)