assert frame equal for empty dataframe code example Example: df empty python if df.empty: print('Your df is empty...')