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 1.4.2 (released April 2, 2022). There will be four additional libraries that you will be using:
- NumPy (≥ 1.20.3)
- Matplotlib (≥ 3.5.0)
- statsmodels (≥ 0.11.0)
- scikit-learn (≥ 1.0.1)
- SciPy (≥ 1.7.1)
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...