How to check whether a pandas DataFrame is empty

PHOTO EMBED

Tue Dec 13 2022 04:00:04 GMT+0000 (Coordinated Universal Time)

Saved by @lahiruaruna #python

if df.empty:
    print('DataFrame is empty!')
content_copyCOPY

https://stackoverflow.com/questions/19828822/how-to-check-whether-a-pandas-dataframe-is-empty