plot_categorical_adverse_impact_ratio#

solas_disparity.plots.plot_categorical_adverse_impact_ratio(...)#

Generate a plot for a categorical AIR result object.

Parameters
  • disparity (Disparity) – Disparity result.

  • column (str, optional) – Column to plot. Defaults to const.AIR_VALUES.

  • category (Optional[Union[str, float]], optional) – Category slice of the summary table to plot. If None, plot all quantiles. Defaults to None.

  • separate (bool, optional) – Whether to generate a separate figure for each category. Defaults to False.

  • group (Optional[str], optional) – Group slice of the summary table to plot. If None, plot all groups. Defaults to None.

Returns

A figure or list of interactive plotly figures if separate is set to True.

Return type

Union[Figure, List[Figure]]