check whether the column is working in dataframe python code example Example: check if column exists in dataframe python if 'A' in df: