tirank.Visualization.create_boxplot

tirank.Visualization.create_boxplot(data, title, ax, group_column='True Label', score_column='Predicted Score')[source]

Creates a boxplot on a given axis with a Mann-Whitney U test.

Parameters:
  • data (pd.DataFrame) – DataFrame containing the plot data.

  • title (str) – Title for the subplot.

  • ax (matplotlib.axes.Axes) – The matplotlib axis to plot on.

  • group_column (str, optional) – The column for the x-axis groups (must contain two groups, 0 and 1). Defaults to “True Label”.

  • score_column (str, optional) – The column for the y-axis numerical values. Defaults to “Predicted Score”.

Returns:

None