in spotify_confidence/analysis/bayesian/bayesian_base.py [0:0]
def _ordinal_difference_plot(self, level_1, level_2, absolute, groupby):
difference_df = self.difference(level_1, level_2, absolute, groupby)
remaining_groups = self._remaining_categorical_groups(groupby)
title = "Change from {} to {}".format(level_1, level_2)
y_axis_label = self.get_difference_plot_label(absolute)
ch = self._ordinal_plot(
"difference",
difference_df,
groupby=None,
level_name="",
remaining_groups=remaining_groups,
absolute=absolute,
title=title,
y_axis_label=y_axis_label,
)
ch.callout.line(0)
return ch