diff --git a/examples/ih/Conversion_Reporting.ipynb b/examples/ih/Conversion_Reporting.ipynb index 91c84afd..077263fa 100644 --- a/examples/ih/Conversion_Reporting.ipynb +++ b/examples/ih/Conversion_Reporting.ipynb @@ -56,7 +56,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.overall_gauges(\n", + "ih.plot.overall_gauges(\n", " metric=\"Conversion\",\n", " condition=\"ExperimentGroup\",\n", " by=\"Channel\",\n", @@ -79,7 +79,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.success_rates_tree_map(metric=\"Conversion\")\n" + "ih.plot.success_rates_tree_map(metric=\"Conversion\")\n" ] }, { @@ -97,7 +97,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.success_rates_trend_bar(\n", + "ih.plot.success_rates_trend_bar(\n", " metric=\"Conversion\",\n", " condition=\"ExperimentGroup\",\n", " every=\"1w\",\n", @@ -110,7 +110,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.success_rates_trend(metric=\"Conversion\", every=\"1d\")" + "ih.plot.success_rates_trend(metric=\"Conversion\", every=\"1d\")" ] }, { @@ -126,7 +126,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.overall_gauges(\n", + "ih.plot.overall_gauges(\n", " condition=\"ExperimentGroup\",\n", " by=\"Channel\",\n", " reference_values={\"Web\": 0.20, \"Email\": 0.20},\n", @@ -139,7 +139,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.success_rates_trend(\n", + "ih.plot.success_rates_trend(\n", " by=\"Channel\"\n", ")" ] @@ -160,8 +160,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.3" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/examples/ih/Example_IH_Analysis.ipynb b/examples/ih/Example_IH_Analysis.ipynb index 5fad5087..30188e6e 100644 --- a/examples/ih/Example_IH_Analysis.ipynb +++ b/examples/ih/Example_IH_Analysis.ipynb @@ -32,7 +32,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -88,7 +88,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.response_count_tree_map()\n" + "ih.plot.response_count_tree_map()\n" ] }, { @@ -97,7 +97,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.action_distribution(query=pl.col.Outcome == \"Clicked\")" + "ih.plot.action_distribution(query=pl.col.Outcome == \"Clicked\")" ] }, { @@ -115,7 +115,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.response_counts(every=\"1d\")" + "ih.plot.response_counts(every=\"1d\")" ] }, { @@ -131,7 +131,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.response_counts(\n", + "ih.plot.response_counts(\n", " by=\"Channel\",\n", " query=pl.col.Channel != \"\",\n", ")" @@ -159,7 +159,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.success_rates_trend(\n", + "ih.plot.success_rates_trend(\n", " by=\"Channel\", query=pl.col.Channel.is_not_null() & (pl.col.Channel != \"\")\n", ")" ] @@ -179,7 +179,7 @@ "metadata": {}, "outputs": [], "source": [ - "ih.plots.model_performance_trend(by=\"Channel\")" + "ih.plot.model_performance_trend(by=\"Channel\")" ] }, { @@ -286,8 +286,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.3" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/python/pdstools/ih/IH.py b/python/pdstools/ih/IH.py index c97382be..0ded1472 100644 --- a/python/pdstools/ih/IH.py +++ b/python/pdstools/ih/IH.py @@ -7,7 +7,7 @@ from .Aggregates import Aggregates from .Plots import Plots -from ..utils.cdh_utils import to_prpc_date_time, _polars_capitalize, _apply_query +from ..utils.cdh_utils import _polars_capitalize, _apply_query from ..utils.types import QUERY from ..pega_io.File import read_ds_export @@ -20,7 +20,7 @@ def __init__(self, data: pl.LazyFrame): self.data = _polars_capitalize(data) self.aggregates = Aggregates(ih=self) - self.plots = Plots(ih=self) + self.plot = Plots(ih=self) self.positive_outcome_labels = { "Engagement": ["Accepted", "Accept", "Clicked", "Click"], "Conversion": ["Conversion"],