Technical requirements
You can download the Jupyter notebooks and the requisite datasets from the GitHub repository to follow along:
- Jupyter notebooks: https://github.com/PacktPublishing/Time-Series-Analysis-with-Python-Cookbook./blob/main/code/Ch7/Chapter%207.ipynb
- Datasets: https://github.com/PacktPublishing/Time-Series-Analysis-with-Python-Cookbook./tree/main/datasets/Ch7
In this chapter and beyond, you will extensively use pandas 2.1.3 (released November 10, 2023). There will be four additional libraries that you will be using:
- numpy (1.26.0)
- matplotlob (3.8.1)
- statsmodels (0.14.0)
- scikit-learn (1.3.2)
- SciPy (1.11.3)
If you are using pip
, then you can install these packages from your terminal with the following command:
pip install matplotlib numpy statsmodels scikit-learn scipy
If you are using conda
, then you can install these packages with the following command:
conda install matplotlib numpy statsmodels scikit-learn scipy
In this chapter, two datasets will be used extensively...