get number of rows in series pandas dataframe code example Example: get number of rows pandas number_of_rows = len(df)