empty dataframe pandas error code example Example: df empty python if df.empty: print('Your df is empty...')