A Python implementation of the R code in https://github.com/ghmagazine/cibook
# Python Version
Python 3.7.4
# Libraries
causal-impact==1.2.1
joblib==0.13.2
numpy==1.18.0
pandas==0.25.3
plotly==4.4.1
pycausalimpact==0.0.14
rdata==0.2.1
rpy2==3.2.4
scikit-learn==0.21.2
scipy==1.3.1
statsmodels==0.10.1
tqdm==4.41.0
# R version
R version 3.6.2 (2019-12-12)
https://nekoumei.github.io/cibook-python/images/ch2_plot2-1.html
https://nekoumei.github.io/cibook-python/images/ch2_plot2-2.html
https://nekoumei.github.io/cibook-python/images/ch2_plot3.html
https://nekoumei.github.io/cibook-python/images/ch2_plot4.html
https://nekoumei.github.io/cibook-python/images/ch2_plot5.html
https://nekoumei.github.io/cibook-python/images/ch3_plot0.html
https://nekoumei.github.io/cibook-python/images/ch3_plot1.html
https://nekoumei.github.io/cibook-python/images/ch3_plot2.html
https://nekoumei.github.io/cibook-python/images/ch3_plot3.html
https://nekoumei.github.io/cibook-python/images/ch3_plot4.html
https://nekoumei.github.io/cibook-python/images/ch3_plot5.html
https://nekoumei.github.io/cibook-python/images/ch4_plot1.html
https://nekoumei.github.io/cibook-python/images/ch4_plot2.html
https://nekoumei.github.io/cibook-python/images/ch4_plot3.html
https://nekoumei.github.io/cibook-python/images/ch5_plot1.html
https://nekoumei.github.io/cibook-python/images/ch5_plot2.html
https://nekoumei.github.io/cibook-python/images/ch5_plot2_2.html
https://nekoumei.github.io/cibook-python/images/ch5_plot2_3.html
https://nekoumei.github.io/cibook-python/images/ch5_plot3.html
https://nekoumei.github.io/cibook-python/images/ch5_plot4.html