To find the number of rows and columns in a Pandas DataFrame, you can use shape.
Here is an example:
>>> import pandas as pd>>> df = pd.DataFrame({'A':[10,20,30], 'B':[11,22,33], 'C':[12,24,36], 'D':[13,26,39]})>>> df A B C D0 10 11 12 131 20 22 24 262 30 33 36 39>>> r,c = df.shape>>> r3>>> c4