.empty in python pandas code example
Example 1: df empty python
if df.empty:
print('Your df is empty...')
Example 2: how to check for empty dataframe
df_empty = pd.DataFrame({'A' : []})
df_empty.empty # True
if df.empty:
print('Your df is empty...')
df_empty = pd.DataFrame({'A' : []})
df_empty.empty # True