Get your own Python server Result Size: 625 x 565
x
 
import pandas as pd
d = {'col1': [1, 2, 3, 4, 7], 'col2': [4, 5, 6, 9, 5], 'col3': [7, 8, 12, 1, 11]}
df = pd.DataFrame(data=d)
count_row = df.shape[0]
print("Number of rows:")
print(count_row)
Number of rows:
5