Run
import pandas as pd # Initialize a DataFrame df = pd.DataFrame() # Check if DataFrame is empty if df.empty: print('The DataFrame is empty.') else: print('The DataFrame is not empty.')
Output