Chrome Extension

Pandas - How to check whether a pandas DataFrame is empty

if df.empty:
    print('DataFrame is empty!')
Code faster with devsheet chrome extension and increase productivity as a programmer
search code from your favorite search engine instantly.
Install Now


df.DataFarame(data) if data are empty ,dose not raise an exception

Was this helpful?
Open Code Manager We are hiring