InterruptedTimeSeries.get_plot_data#

InterruptedTimeSeries.get_plot_data(*, group='posterior', hdi_prob=0.94)[source]#

Recover the data of the experiment along with the prediction and causal impact information.

HDI columns are included only when the prediction container carries draws (point-estimate backends return just prediction and impact).

Parameters:
  • group (Literal['prior', 'posterior']) – Which draw group to summarize. "prior" requires sample_prior_predictive(); "posterior" requires fit().

  • hdi_prob (float) – Probability mass of the highest density interval. Defaults to the project-wide HDI_PROB (currently 0.94). Ignored when the prediction container has no draws.

Returns:

Observed data with prediction and impact columns plus HDI bounds when draws are available. Not cached on the experiment.

Return type:

pd.DataFrame