if df empty code example Example 1: check empty dataframe df.empty == True Example 2: df empty python if df.empty: print('Your df is empty...')