count_row = df.shape[0] # Gives number of rows
count_col = df.shape[1] # Gives number of columns
len(df.index)
How to get the row count of a Pandas DataFrame? – Data Analysis
How to get the row count of a Pandas DataFrame? – Data Analysis
Suggested Articles
Python Pandas Read CSV Files with 15 ways – Data Analysis
What are *args and **kwargs and How to use them – Data Analysis
Object Oriented Programming in Python with Examples – Data Analysis