I have an if statement where it checks if the data frame is not empty. The way I do it is the following:
if
if dataframe.empty: pass else: #do
Another way:
if dataframe.empty == False: #do something`