how to check null in column in python code example
Example 1: knowing the sum null values in a specific row in pandas dataframe
note:df is syour dataframe
print(df['emp_title'].isnull().sum())
Example 2: 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