I have the below dataset from a survey that give each participant a list of foods and asks them to rank how likely they are to eat them this week. I want to plot the count for each likelhood of each food type on a graph.
Person Food Label
John Pizza Likely
John Chinese Unlikely
John French Very Unlikely
Debbie Pizza Unlikely
Debbie Chinese Very Likely
Debbie French Very Unlikely
For example:
Pizza Likely 1
Pizza Unlikely 1
Chinese Unlikely 1
Chinese Very Unlikely 1
French Very Unlikely 2
So far I have read my file into a dataframe and done some basic cleaning.
import pandas as pd
raw_data = pd.read_excel('my_file_path')
#cleaning code
clean_data = raw_data(clean)
results = clean_data.groupby(['Food', 'Label']).count()
