Q:

check if column exists in dataframe

if 'A' in df:
1
if 'A' in df.columns:
1

New to Communities?

Join the community