pdstools.decision_analyzer.plots._distribution¶
Distribution-style plots: treemap, action variation, histograms, rank/parameter boxplots.
Functions¶
|
|
|
Plot action variation (Lorenz curve showing action concentration). |
|
|
|
|
Create box plots comparing parameter distributions between selected actions and others. |
Module Contents¶
- action_variation(self, stage='Final', color_by=None, return_df=False)¶
Plot action variation (Lorenz curve showing action concentration).
- Args:
stage: Stage to analyze color_by: Optional dimension to color by (e.g., “Channel/Direction”) return_df: If True, return the data instead of the figure
- distribution(self, df: polars.LazyFrame, scope: str, breakdown: str, metric: str = 'Decisions', horizontal=False)¶
- rank_boxplot(self, reference: polars.Expr | list[polars.Expr] | None = None, return_df=False, additional_filters=None)¶
- Parameters:
reference (polars.Expr | list[polars.Expr] | None)
- create_parameter_distribution_boxplots(segmented_df: polars.DataFrame, parameters: list[str] | None = None, title: str = 'Parameter Distributions: Selected Actions vs Competitors') plotly.graph_objects.Figure¶
Create box plots comparing parameter distributions between selected actions and others.
- Parameters:
- Returns:
Plotly figure with box plots
- Return type:
go.Figure