Technical requirements
In this chapter, we will extensively use pandas 2.2.2 (released April 10, 2024).
Throughout our journey, you will install several Python libraries to work with pandas. These are highlighted in the Getting ready section for each recipe. You can also download the Jupyter notebooks from the GitHub repository at https://github.com/PacktPublishing/Time-Series-Analysis-with-Python-Cookbook to follow along.
You should refer to the Technical Requirements section in Chapter 3, Reading Time Series Data from Databases. This includes creating a configuration file such as the
database.cfg
.
You will be using the same dataset throughout the recipes in this chapter. The dataset is based on Amazon's stock data from January 2019 to December 2023 pulled using the yfnance
library and written as a pandas DataFrame.
Start by installing the yfinance
library, which you can install using conda with:
conda install -c conda-forge yfinance
You can also install using pip with:
pip...