Python

How to get the row count of a Pandas DataFrame? – Data Analysis

How to get the row count of a Pandas DataFrame? – Data Analysis
count_row = df.shape[0]  # Gives number of rows
count_col = df.shape[1]  # Gives number of columns
len(df.index)
Suggested Articles

Leave a Reply

Your email address will not be published. Required fields are marked *