►
Run
import pandas as pd df = pd.DataFrame() if df.empty: print('DataFrame is empty.') else: print('DataFrame is not empty.')
Output