-
Book Overview & Buying
-
Table Of Contents
Machine Learning for Time Series with Python - Second Edition
By :
The dataset used in this chapter can be accessed here: https://archive.ics.uci.edu/dataset/275/bike+sharing+dataset.
The chapter's code uses pandas, numpy, matplotlib, scipy, statsmodels, yfinance (apart from standard library modules). Install the third-party packages once with:
pip install pandas numpy matplotlib scipy statsmodels yfinance
The code targets pandas 2.0+ and statsmodels 0.14+. We stick with pandas throughout the chapter, but readers working with very large time series may want to look at Polars, which has gained traction for its lazy evaluation and faster groupby on hourly or sub-hourly data; the diagnostics in this chapter port over without changing in spirit.
If you follow the instructions on the book's companion repository on GitHub, you can set up an environment that has everything installed: https://github.com/PacktPublishing/Machine-Learning-for-Time-Series-with-Python-Second-Edition.