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