how to get row number of column in pandas apply code example Example: python- number of row in a dataframe index = df.index number_of_rows = len(index)