pandas column is null code example
Example 1: python if column is null then
df['real_lastName'] = np.where(df['LastName'].isnull(), df['Middle'], df['LastName'] )
print (df)
FirstName Middle LastName real_lastName
0 Tom Ju NaN Ju
1 Kity NaN Rob Rob
Example 2: check if any value is null in pandas dataframe
df.isnull().values.any()