Nguyen-Kha / SYDE2023_Class_Profile

0 stars 0 forks source link

upgrade labels in create_bar #17

Closed Nguyen-Kha closed 6 months ago

Nguyen-Kha commented 7 months ago

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

Nguyen-Kha commented 6 months ago

closed in #18