I understand that groupby type with sum as the agg function does the following:
Before:
type stale price
orange yes 1
apple yes 2
orange no 3
After:
type stale price
orange yes 1
no 3
apple no 2
Is there an argument in groupby that would allow me to display all cell values? Therefore placing a value of "orange" above where it says apple instead of forcing the reader to understand that the second row still belongs to orange? It may seem useless for this example, but in a larger dataset, it is helpful to be able to see all the cell values.