python program to check if a column exists in dataframe code example Example: check if column exists in dataframe python if 'A' in df: