python retun none if subset column is missing code example
Example: filter nulla values only pandas
#Python, pandas
#Obtain a dataframe df containing only the rows where "column1" is null (NaN)
df[df['column1'].isnull()]
#Python, pandas
#Obtain a dataframe df containing only the rows where "column1" is null (NaN)
df[df['column1'].isnull()]