: Find the most profitable category and sub category combination based on the net profit. code example
Example: get the most sales product in dataframe
df.groupby(["Rep"]).sum().sort_values("Units", ascending=False)
df.groupby(["Rep"]).sum().sort_values("Units", ascending=False)