pandas command to check if column exists code example Example: check if column exists in dataframe python if 'A' in df: