pdstools.ih.Plots

Classes

Module Contents

class Plots(ih: pdstools.ih.IH.IH)

Bases: pdstools.utils.namespaces.LazyNamespace

Parameters:

ih (pdstools.ih.IH.IH)

ih
overall_gauges(condition: str | polars.Expr, *, metric: str | None = 'Engagement', by: str | None = 'Channel', reference_values: Dict[str, float] | None = None, title: str | None = None, query: pdstools.utils.types.QUERY | None = None, return_df: bool | None = False)
Parameters:
  • condition (Union[str, polars.Expr])

  • metric (Optional[str])

  • by (Optional[str])

  • reference_values (Optional[Dict[str, float]])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • return_df (Optional[bool])

response_count_tree_map(*, by: List[str] | None = None, title: str | None = None, query: pdstools.utils.types.QUERY | None = None, return_df: bool | None = False)
Parameters:
  • by (Optional[List[str]])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • return_df (Optional[bool])

success_rate_tree_map(*, metric: str | None = 'Engagement', by: List[str] | None = None, title: str | None = None, query: pdstools.utils.types.QUERY | None = None, return_df: bool | None = False)
Parameters:
  • metric (Optional[str])

  • by (Optional[List[str]])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • return_df (Optional[bool])

action_distribution(*, by: str | None = 'Name', title: str | None = 'Action Distribution', query: pdstools.utils.types.QUERY | None = None, color: str | None = None, facet: str | None = None, return_df: bool | None = False)
Parameters:
  • by (Optional[str])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • color (Optional[str])

  • facet (Optional[str])

  • return_df (Optional[bool])

success_rate(*, metric: str | None = 'Engagement', every: str | datetime.timedelta = '1d', title: str | None = None, query: pdstools.utils.types.QUERY | None = None, facet: str | None = None, return_df: bool | None = False)
Parameters:
  • metric (Optional[str])

  • every (Union[str, datetime.timedelta])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • facet (Optional[str])

  • return_df (Optional[bool])

response_count(*, every: str | datetime.timedelta = '1d', title: str | None = 'Responses', query: pdstools.utils.types.QUERY | None = None, facet: str | None = None, return_df: bool | None = False)
Parameters:
  • every (Union[str, datetime.timedelta])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • facet (Optional[str])

  • return_df (Optional[bool])

model_performance_trend(*, metric: str | None = 'Engagement', every: str | datetime.timedelta = '1d', by: str | None = None, title: str | None = 'Model Performance over Time', query: pdstools.utils.types.QUERY | None = None, facet: str | None = None, return_df: bool | None = False)
Parameters:
  • metric (Optional[str])

  • every (Union[str, datetime.timedelta])

  • by (Optional[str])

  • title (Optional[str])

  • query (Optional[pdstools.utils.types.QUERY])

  • facet (Optional[str])

  • return_df (Optional[bool])