Run
import pandas as pd # Initialize a DataFrame df = pd.DataFrame() print('The DataFrame is :\n', df) # Get DataFrame shape shape = df.shape print('DataFrame Shape :', shape) print('Number of rows :', shape[0]) print('Number of columns :', shape[1])
Output