pandas dropna in first n rows code example
Example 1: drop duplicate rows pandas except nan
df[(~df.duplicated()) | (df['col'].isnull())]
Example 2: drop null rows pandas
df.dropna()
df[(~df.duplicated()) | (df['col'].isnull())]
df.dropna()