# single column: if `A` in df and `B` in df: # multiple columns: pd.Series(['A', 'B']).isin(df.columns).all()