pdstools.ih.IHAnalysis

Module Contents

Functions

SuccessRate(→ polars.Expr)

AUC(→ polars.Expr)

_metricPerPeriod(df, period, metrics[, ...])

_cumulativeMetricPerPeriod(df, period, metrics[, ...])

successRatePerPeriod(df[, period])

volumesPerPeriod(df[, period])

_plotPerPeriod(df, to_plot, period[, color, ...])

plotSuccessRatePerPeriod(df, period[, cumulative, ...])

plotVolumesPerPeriod(df, period[, cumulative, color, ...])

plotPropensityDistribution(df, channel, direction, ...)

SuccessRate(outcome_col='pyOutcome', **kwargs) polars.Expr
Return type:

polars.Expr

AUC(outcome_col='pyOutcome', propensity_col='pyModelPropensity') polars.Expr
Return type:

polars.Expr

_metricPerPeriod(df, period, metrics, OutcomeTime_col='pxOutcomeTime', by=None, **kwargs)
_cumulativeMetricPerPeriod(df, period, metrics, OutcomeTime_col='pxOutcomeTime', by=None, **kwargs)
successRatePerPeriod(df, period='1d', **kwargs)
volumesPerPeriod(df, period='1d', **kwargs)
_plotPerPeriod(df: polars.LazyFrame, to_plot, period, color=None, facet_col=None, facet_row=None, **kwargs)
Parameters:

df (polars.LazyFrame)

plotSuccessRatePerPeriod(df: polars.LazyFrame, period, cumulative=False, color=None, facet_col=None, facet_row=None, **kwargs)
Parameters:

df (polars.LazyFrame)

plotVolumesPerPeriod(df: polars.LazyFrame, period, cumulative=False, color=None, facet_col=None, facet_row=None, **kwargs)
Parameters:

df (polars.LazyFrame)

plotPropensityDistribution(df: polars.LazyFrame, channel, direction, issue, group, name, propensityType, **kwargs)
Parameters:

df (polars.LazyFrame)