python pandas determine if a dataframe is not 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