Data frame df has three columns: x, y, and n. I want to create a new data frame that groups by x, counts the number of ob
df
x
y
n