Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon Sold by: TRIO ALLIANCE
Used - Very Good
-
To see product details, add this item to your cart.
Ships from: World of Books (previously glenthebookseller) Sold by: World of Books (previously glenthebookseller)
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Time Series Analysis with Python Cookbook: Practical recipes for exploratory data analysis, data preparation, forecasting, and model evaluation
Purchase options and add-ons
Perform time series analysis and forecasting confidently with this Python code bank and reference manual
Key Features
- Explore forecasting and anomaly detection techniques using statistical, machine learning, and deep learning algorithms
- Learn different techniques for evaluating, diagnosing, and optimizing your models
- Work with a variety of complex data with trends, multiple seasonal patterns, and irregularities
Book Description
Time series data is everywhere, available at a high frequency and volume. It is complex and can contain noise, irregularities, and multiple patterns, making it crucial to be well-versed with the techniques covered in this book for data preparation, analysis, and forecasting.
This book covers practical techniques for working with time series data, starting with ingesting time series data from various sources and formats, whether in private cloud storage, relational databases, non-relational databases, or specialized time series databases such as InfluxDB. Next, you'll learn strategies for handling missing data, dealing with time zones and custom business days, and detecting anomalies using intuitive statistical methods, followed by more advanced unsupervised ML models. The book will also explore forecasting using classical statistical models such as Holt-Winters, SARIMA, and VAR. The recipes will present practical techniques for handling non-stationary data, using power transforms, ACF and PACF plots, and decomposing time series data with multiple seasonal patterns. Later, you'll work with ML and DL models using TensorFlow and PyTorch.
Finally, you'll learn how to evaluate, compare, optimize models, and more using the recipes covered in the book.
What you will learn
- Understand what makes time series data different from other data
- Apply various imputation and interpolation strategies for missing data
- Implement different models for univariate and multivariate time series
- Use different deep learning libraries such as TensorFlow, Keras, and PyTorch
- Plot interactive time series visualizations using hvPlot
- Explore state-space models and the unobserved components model (UCM)
- Detect anomalies using statistical and machine learning methods
- Forecast complex time series with multiple seasonal patterns
Who this book is for
This book is for data analysts, business analysts, data scientists, data engineers, or Python developers who want practical Python recipes for time series analysis and forecasting techniques. Fundamental knowledge of Python programming is required. Although having a basic math and statistics background will be beneficial, it is not necessary. Prior experience working with time series data to solve business problems will also help you to better utilize and apply the different recipes in this book.
Table of Contents
- Getting Started with Time Series Analysis
- Reading Time Series Data from Files
- Reading Time Series Data from Databases
- Persisting Time Series Data to Files
- Persisting Time Series Data to Databases
- Working with Date and Time in Python
- Handling Missing Data
- Outlier Detection Using Statistical Methods
- Exploratory Data Analysis and Diagnosis
- Building Univariate Time Series Models Using Statistical Methods
- Additional Statistical Modeling Techniques for Time Series
- Forecasting Using Supervised Machine Learning
- Deep Learning for Time Series Forecasting
- Outlier Detection Using Unsupervised Machine Learning
- Advanced Techniques for Complex Time Series
- ISBN-101801075549
- ISBN-13978-1801075541
- PublisherPackt Publishing
- Publication dateJune 30, 2022
- LanguageEnglish
- Dimensions7.5 x 1.42 x 9.25 inches
- Print length630 pages
Frequently bought together

Customers who viewed this item also viewed
- Time Series Analysis with Python Cookbook: Practical recipes for the complete time series workflow, from modern data engineering to advanced forecasting and anomaly detectionPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Modern Time Series Forecasting with Python: Industry-ready machine learning and deep learning time series analysis with PyTorch and pandasPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Practical Time Series Analysis: Prediction with Statistics and Machine LearningPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19Only 7 left in stock (more on the way).
- Bayesian Analysis with Python: A practical guide to probabilistic modelingPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Time Series Forecasting Using Foundation Models: How to build high accuracy predictive modelsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Mastering Modern Time Series Forecasting: A Comprehensive Guide to Statistical, Machine Learning, and Deep Learning Models in PythonPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
Customers also bought or read
- Modern Time Series Forecasting with Python: Industry-ready machine learning and deep learning time series analysis with PyTorch and pandas
Paperback$42.74$42.74FREE delivery Mon, Sep 21 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python#1 Best SellerSpeech & Audio Processing
Paperback$36.05$36.05FREE delivery Sat, Sep 19 - Python for Finance Cookbook: Over 80 powerful recipes for effective financial data analysis, 2nd Edition
Paperback$37.98$37.98FREE delivery Mon, Sep 21 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Mon, Sep 21 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Sep 30 - Oct 16 - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$49.50$49.50FREE delivery Mon, Sep 21 - Practical Time Series Analysis: Prediction with Statistics and Machine Learning
Paperback$40.07$40.07FREE delivery Sat, Sep 19 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Mon, Sep 21 - Python for Algorithmic Trading Cookbook: Recipes for designing, building, and deploying algorithmic trading strategies with Python
Paperback$44.99$44.99FREE delivery Mon, Sep 21 - An Introduction to Statistical Learning: with Applications in Python (Springer Texts in Statistics)
Hardcover$56.21$56.21FREE delivery Thu, Oct 1 - Pandas Cookbook: Practical recipes for scientific computing, time series, and exploratory data analysis using Python
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Machine Learning for Algorithmic Trading: Predictive models to extract signals from market and alternative data for systematic trading strategies with Python
Paperback$40.30$40.30$4.49 delivery Wed, Sep 23 - Practical Statistics for Data Scientists: 50+ Essential Concepts Using R and Python
Paperback$69.09$69.09FREE delivery Sat, Sep 19 - Fundamentals of Data Engineering: Plan and Build Robust Data Systems
Paperback$40.00$40.00FREE delivery Sep 27 - Oct 14 - Modern Time Series Forecasting with Python: Explore industry-ready time series forecasting using modern machine learning and deep learning
Paperback$55.76$55.76FREE delivery Mon, Sep 21 - Essential Math for Data Science: Take Control of Your Data with Fundamental Linear Algebra, Probability, and Statistics
Paperback$36.22$36.22FREE delivery Sat, Sep 19 - SQL for Data Analysis: Advanced Techniques for Transforming Data into Insights
Paperback$36.49$36.49FREE delivery Sat, Sep 19 - Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools
Paperback$42.79$42.79FREE delivery Mon, Sep 21 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Sat, Sep 19 - Reinforcement Learning, second edition: An Introduction (Adaptive Computation and Machine Learning series)
Hardcover$80.48$80.48FREE delivery Sat, Sep 19 - Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Paperback$40.00$40.00FREE delivery Sat, Sep 19 - Python Data Cleaning Cookbook: Prepare your data for analysis with pandas, NumPy, Matplotlib, scikit-learn, and OpenAI
Paperback$49.99$49.99FREE delivery Mon, Sep 21 - Forecasting Time Series Data with Prophet: Build, improve, and optimize time series forecasting models using Meta's advanced forecasting tool, 2nd Edition
Paperback$46.99$46.99FREE delivery Mon, Sep 21 - Python Feature Engineering Cookbook: A complete guide to crafting powerful features for your machine learning models
Paperback$46.99$46.99FREE delivery Mon, Sep 21 - Time Series Analysis with Python Cookbook: Practical recipes for the complete time series workflow, from modern data engineering to advanced forecasting and anomaly detection
Paperback$49.99$49.99FREE delivery Mon, Sep 21 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
Paperback$19.99$19.99Delivery Sat, Sep 19
Editorial Reviews
Review
"There are so many use cases when we need to deal with time series data – demand forecasting, predictive maintenance, and energy consumption, to name a few – and so every data scientist must be skilled in time series analysis.
Time series analysis is very difficult to master. That’s why I enjoyed Tarek A. Atwan’s book. I believe that by reading it, every data scientist will learn something new from the Python snippets dealing with time and date in Python (which is never as easy as it seems), running EDA, handling missing values, detecting outliers, and forecasting with statistical, machine learning, and deep learning models."
Adam Votava, Interim Chief Data and Analytics Officer at DataDiligence
"The book covers all the necessary details for time series data preparation, analysis, and forecasting, including how time series data is different from other data, how to ingest data from various sources and databases, how to deal with different time zones and custom business days, how to detect anomalies using statistical methods and visualizations, followed by developing advanced deep learning models for forecasting."
Overall, this is a great reference book for data science practitioners to get up to speed quickly on state-of-the-art time series data analysis and forecasting techniques!
Sadid Hasan, AI Lead at Microsoft
"I recommend reading this book to anyone at any level. The book has extensive chapters on how to read and write time series data using various technologies. This is a gap for most academically trained or MOOC-trained data analysts/ scientists. The book then describes statistical methodologies to handle time series forecasting. What I enjoyed is the pace at which the author gives enough background on a topic while also showing the reader how things are done practically. Later chapters describe the ML-based modeling of time series data.
I found this book to be a treasure trove of information on a set of very diverse approaches and topics. The more curious reader can later pick up a book on any of these chapters’ topics.
Highly recommended for newbies and veterans alike."
Shobeir Seddington, Principal Data Scientist at Gopuff & Harvard Business Review Advisor at Harvard Business Review
About the Author
Tarek A. Atwan is a data analytics expert with over 16 years of international consulting experience, providing subject matter expertise in data science, machine learning operations, data engineering, and business intelligence. He has taught multiple hands-on coding boot camps, courses, and workshops on various topics, including data science, data visualization, Python programming, time series forecasting, and blockchain at different universities in the United States. He is regarded as an industry mentor and advisor, working with executive leaders in various industries to solve complex problems using a data-driven approach.
Product details
- Publisher : Packt Publishing
- Publication date : June 30, 2022
- Language : English
- Print length : 630 pages
- ISBN-10 : 1801075549
- ISBN-13 : 978-1801075541
- Item Weight : 2.35 pounds
- Dimensions : 7.5 x 1.42 x 9.25 inches
- Best Sellers Rank: #1,675,375 in Books (See Top 100 in Books)
- #554 in Data Modeling & Design (Books)
- #830 in Data Processing
- #1,461 in Python Programming
- Customer Reviews:
About the author

Tarek A. Atwan is a seasoned analytics and technology leader with over 20 years of international experience in data science, machine learning, and data engineering. He is the author of the "Time Series Analysis with Python Cookbook" (Packt Publishing), now in its second edition and translated into Japanese.
As the founder of Ensemble Methods, Tarek bridges the gap between complex technical theory and practical, real-world implementation. His consulting work focuses on transforming organizations through AI strategy, MLOps, and modern data architecture. He has served as a strategic advisor to global entities, helping them navigate the rapidly evolving landscapes of Generative AI and cloud data infrastructure.
Beyond consulting, Tarek is a dedicated educator. He is a three-time recipient of the Pluralsight Elite Instructor Award (2023, 2024, and 2025) and has developed advanced curricula for prestigious institutions in areas such as Deep Learning, LLMOps, and Anomaly Detection. He holds expert-level certifications across AWS, Microsoft Azure, Google Cloud, and Databricks.

















