Check whether a given column is present in a Dataframe
DataFrame is a structure that contains 2-dimensional data and its corresponding labels. DataFrame.columns attribute return the column labels of the given Dataframe . In Order to check if a column exists in Pandas DataFrame, you can use "in" expression.
Use in
Use not in
Check for multiple columns exists in DataFrame

You can alternatively be constructed with curly braces {}.