pandas df don't count index column in shape code example Example: get number of rows pandas number_of_rows = len(df)