0 points

python - How to check if a column exists in Pandas - Stack Overflow


dashboard

Mon Nov 16 2020 13:04:00 GMT+0000 (UTC)

Posted by @arielvol #python

if 'A' in df.columns:
content_copy Copy

https://stackoverflow.com/questions/24870306/how-to-check-if-a-column-exists-in-pandas