need to add extra column_labels parameter to rename the names of each bar
there should be labels, and column_labels
functionality:
labels: sorts the dataframe (df_temp) in the specified order to be displayed on the graph. Should only contain the actual column_names. Unaffected by column_labels
column_labels: changes the xticklabels to what should be shown. doesn't affect the dataframe at all, only changes the graph labels
you can probably do a pd.Categorical() and pass labels into that to sort it. Check some of the other implementations.
Change all the other labels calls into column_labels
need to add extra column_labels parameter to rename the names of each bar there should be labels, and column_labels
functionality: labels: sorts the dataframe (df_temp) in the specified order to be displayed on the graph. Should only contain the actual column_names. Unaffected by column_labels column_labels: changes the xticklabels to what should be shown. doesn't affect the dataframe at all, only changes the graph labels
you can probably do a pd.Categorical() and pass labels into that to sort it. Check some of the other implementations. Change all the other labels calls into column_labels