fastest way to get number of rows in pandas database code example Example: get number of rows pandas number_of_rows = len(df)