A Pandas DataFrame has one or more columns, each of which has an identifiable name.
Solution for How to check if a column exists in a Pandas DataFrame in Python : You can use the in keyword to check if a column is in a pandas.DataFrame Use the syntax column_name in dataframe to check if column_name is in pandas.DataFrame.