I have this line of code below
df.groupby(['ProdName','Year'])['OrderID'].count()
I was wondering how can i add another column that would do a distinct count (nunique)
I have this line of code below
df.groupby(['ProdName','Year'])['OrderID'].count()
I was wondering how can i add another column that would do a distinct count (nunique)