pdstools.valuefinder.Plots¶
Attributes¶
Classes¶
Plots. |
Module Contents¶
- logger¶
- COLORSCALE_TYPES¶
- T¶
- P¶
- class Plots(vf: pdstools.valuefinder.ValueFinder.ValueFinder)¶
Bases:
pdstools.utils.namespaces.LazyNamespacePlots.
- Parameters:
- dependency_group = 'adm'¶
- vf¶
- funnel_chart(by: str, query: pdstools.utils.types.QUERY | None = None, return_df: Literal[False] = False) pdstools.utils.plot_utils.Figure¶
- funnel_chart(by: str, query: pdstools.utils.types.QUERY | None = None, return_df: Literal[True] = True) polars.LazyFrame
Funnel chart.
- propensity_distribution(sample_size: int = 10000, *, max_points_per_group: int | None = DEFAULT_PLOT_POINTS_PER_GROUP) pdstools.utils.plot_utils.Figure¶
Plot the propensity distribution for each stage.
- propensity_threshold(sample_size: int = 10000, stage: str = 'Eligibility', *, max_points_per_group: int | None = DEFAULT_PLOT_POINTS_PER_GROUP) pdstools.utils.plot_utils.Figure¶
Plot propensity distributions against the configured threshold.
- Parameters:
- Returns:
Propensity density and histogram plots.
- Return type:
- pie_charts(*, thresholds: collections.abc.Iterable[float] | None = None, quantiles: collections.abc.Iterable[float] | None = None, rounding: int = 3)¶
Pie charts.
- Parameters:
thresholds (collections.abc.Iterable[float] | None)
quantiles (collections.abc.Iterable[float] | None)
rounding (int)
- distribution_per_threshold(*, thresholds: collections.abc.Iterable[float] | None = None, quantiles: collections.abc.Iterable[float] | None = None, rounding: int = 3)¶
Distribution per threshold.
- Parameters:
thresholds (collections.abc.Iterable[float] | None)
quantiles (collections.abc.Iterable[float] | None)
rounding (int)