There are several ways to find whether or not a given pandas DataFrame is empty.
Here I am declaring two DataFrames, df and df1, for testing.
>>> import pandas as pd
>>> df = pd.DataFrame({'a':np.random.random(3), 'b':np.random.random(3), 'c':np.random.random(3)})
>>> df
a b c
0 0.546561 0.904433 0.669987
1 0.265768 0.240396 0.358043
2 0.631672 0.871593 0.731576
>>> df1=pd.DataFrame()
It will return True if the DataFrame is empty; otherwise, False.
>>> import pandas as pd
>>> df.empty
False
>>> df1.empty
True
If the returned value is 0, the DataFrame is empty.
>>> df.size
9
>>> df1.size
0
If the returned value is (0,0), the DataFrame is empty.
>>> df.shape
(3, 3)
>>> df1.shape
(0, 0)