rows_count = len(df.index) rows_count = len(df.axes[0]) rows_count = df.shape[0] rows_count = df.count()[0]
df.info() df.shape print(df.shape)