Skip to content

Commit e96e7b9

Browse files
committed
Updating doctest
1 parent 38d5f12 commit e96e7b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

causalpy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from causalpy.version import __version__
2020

2121
from .data import load_data
22+
from .experiments.change_point_detection import ChangePointDetection
2223
from .experiments.diff_in_diff import DifferenceInDifferences
2324
from .experiments.instrumental_variable import InstrumentalVariable
2425
from .experiments.interrupted_time_series import InterruptedTimeSeries
@@ -33,6 +34,7 @@
3334
__all__ = [
3435
"__version__",
3536
"DifferenceInDifferences",
37+
"ChangePointDetection",
3638
"create_causalpy_compatible_class",
3739
"InstrumentalVariable",
3840
"InterruptedTimeSeries",

causalpy/experiments/change_point_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ChangePointDetection(BaseExperiment):
128128
... .set_index("date")
129129
... )
130130
>>> seed = 42
131-
>>> result = cp.experiments.change_point_detection.ChangePointDetection(
131+
>>> result = cp.ChangePointDetection(
132132
... df,
133133
... time_range=None,
134134
... formula="y ~ 1 + t + C(month)",

0 commit comments

Comments
 (0)