size of dataframe in pandas code example Example: df length total_rows = df.count print total_rows +1