I've got a dataframe with three columns, which I'd like to plot into a chart. I need the chart to show how many (or what's the %) of "Yes" rows from the whole "coverage". I struggle with creating a chart as these are non-numeric values. Can anyone advise, please?
parent rule coverage
AFKS RM AFKS RM Yes
AFLT RM AFLT RM Yes
AGRO LI NaN No
AKRN RM AKRN RM Yes
ALRS RM ALRS RM Yes
BANE RM BANE RM Yes
I looked at one of the other answers in Stackoverflow and tried the below but it gives me "TypeError: Empty 'DataFrame': no numeric data to plot".
grouped = df.groupby(['coverage'])['parent']
grouped.sum().plot(kind='bar')
I also tried to calculate percentage of coverage, but not sure how if that's the right way and how to plot from here.
df = df[result['coverage']=='Yes'].count() /df['coverage'].count()
