how to remove rows with no data in some columns in pandas in python code example Example: python remove nan rows df = df[df['my_var'].notna()]