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