pivot_table No numeric types to aggregate

I want to make a pivot table from the following dataframe with columns sales, rep. The pivot table shows sales but no rep. When I tried with only rep, I got the error DataError: No numeric types to aggregate. How to fix this such that I see both the numeric field sales and the field(string) rep