i am using below formula to get value count froma. column in a dataframe:
new_data = df['item'].value_counts()
which give me below result
Apples 3
Green bananas 2
Bananas 1
Oranges 1
what i want is to get output for every item count in in new column like the below excel example
Any help or guidance is appreciated. Thank you
