I have a requirement where in I am trying to count the values and Put them in the pivot table.
This is my dataframe,
Cola Colb
Apple Rippened
Orange Rippened
Apple UnRippened
Mango UnRippened
I want the Output to be like this,
Rippened UnRippened
Apple 1 1
Mango 0 1
Orange 1 0
Kindly share your thoughts.
Using my favourite:
pd.crosstab
IIUC:
I love this question....
Option 1
Option 2
Option 3
Option 4