pandas dropna specific column

df.dropna(subset=['column1','column2'], inplace=True)

Here is what the above code is Doing:
1. We’re creating a new DataFrame called df_no_missing.
2. We’re specifying that we only want to keep rows from df that have non-missing values in both column1 and column2.
3. We’re setting the inplace argument to True, which tells Python to overwrite the existing df variable with the df_no_missing variable.