I'm trying to plot multiple columns onto a single bar chart.
First, I defined them:
public_action_sum = df['Q17.4_1'].sum()
testified_sum = df['Q17.4_4'].sum()
met_el_sum = df['Q17.4_5'].sum()
...
and then merged those sums into a single dataframe:
actions_combined = [public_action_sum, testified_sum, met_el_sum, policy_sum, bill_sum]
I'm trying to use pandas.DataFrame.plot.bar
and have written:
pd.DataFrame.plot.bar(x['Q17.4_1','Q17.4_4','Q17.4_5','Q17.4_6','Q17.4_7'],y=actions_combined,rot=0)
but am getting the error "missing 1 required positional argument: 'self'
I've spent the last hour and a half trying to figure this iout, and am not sure where I'm going wrong. Thoughts? THANKS!