Below is the sample code
import pandas as pd
from causalimpact import CausalImpact
data = pd.read_csv('https://raw.githubusercontent.com/WillianFuks/tfcausalimpact/master/tests/fixtures/arma_data.csv')[['y', 'X']]
data.iloc[70:, 0] += 5
pre_period = [0, 69]
post_period = [70, 99]
ci = CausalImpact(data, pre_period, post_period)
ci.plot()
I wanted to write above generated plot to html or atleast save as image . Is there any solution as type of ci.plot() is nonetype . https://github.com/WillianFuks/tfcausalimpact
A very dirty (but working) solution would be to: