python - Check if multiple columns exist in a df - Stack Overflow
Wed Aug 12 2020 22:05:29 GMT+0000 (Coordinated Universal Time)
https://stackoverflow.com/questions/47815140/check-if-multiple-columns-exist-in-a-dfWed Aug 12 2020 22:05:29 GMT+0000 (Coordinated Universal Time)
https://stackoverflow.com/questions/47815140/check-if-multiple-columns-exist-in-a-df
Comments
@markelvy - Mon Jul 05 2021 06:31:27 GMT+0000 (Coordinated Universal Time)if set(['Name','Promoted']).issubset(df.columns): print("Yes") else: print("No") http://net-informations.com/ds/pd/exists.htm