Rare mix of depth and readability. The worked examples are the clearest I have seen on this subject.

Python for Data Science
From first print() to real data projects.
Learn Python from scratch through the lens of data science: fundamentals, data structures, and the NumPy/Pandas/Matplotlib toolkit. Then put it to work in two hands-on builds — a computer-vision app with OpenCV and MediaPipe, and a web scraper.
Read on your Kindle or e-reader
Download the EPUB and read offline — perfect for the train. Works on Kindle, Kobo, Apple Books & more.
00Getting Started4 capsules
Getting Started — 4 chapters.
01Why Python for Data Science?intuitionfree12 min02Setting Up Your Environmentcodefree11 min03Your First Python Programcode🔒10 min04How to Read This Bookconcept🔒12 min01Python Fundamentals6 capsules
Python Fundamentals — 6 chapters.
05Variables and Data Typesconcept🔒12 min06Operators and Expressionscode🔒13 min07Strings and Formattingcode🔒13 min08Control Flow: if / elif / elsecode🔒10 min09Loops: for and whilecode🔒11 min10Functions and Scopecode🔒11 min02Data Structures in Python6 capsules
Data Structures in Python — 6 chapters.
11Lists: The Workhorsecode🔒10 min12Tuples and Immutabilityconcept🔒11 min13Dictionaries: Key-Value Powercode🔒10 min14Sets and Uniquenessconcept🔒9 min15Comprehensions and Idiomatic Pythoncode🔒11 min16Choosing the Right Data Structureintuition🔒10 min03Problem-Solving with Coding Challenges4 capsules
Problem-Solving with Coding Challenges — 4 chapters.
17How to Approach a Coding Problemintuition🔒11 min18Coding Challenge Oneproject🔒9 min19Coding Challenge Twoproject🔒10 min20Coding Challenge Threeproject🔒12 min04The Data Science Toolkit5 capsules
The Data Science Toolkit — 5 chapters.
21NumPy: Arrays and Vectorizationcode🔒12 min22Pandas: Series and DataFramescode🔒11 min23Cleaning and Transforming Datacode🔒10 min24Visualizing Data with Matplotlibcode🔒11 min25A Mini Data-Analysis Walkthroughproject🔒11 min05Project: Computer Vision with OpenCV & MediaPipe5 capsules
Project: Computer Vision with OpenCV & MediaPipe — 5 chapters.
26Images as Arraysconcept🔒10 min27Getting Started with OpenCVcode🔒10 min28Hand Tracking with MediaPipecode🔒10 min29Building the Milestone Projectproject🔒10 min30Debugging and Extending the Projectdeep-dive🔒12 min06Project: Building a Web Scraper5 capsules
Project: Building a Web Scraper — 5 chapters.
31How the Web Works for Scrapingconcept🔒10 min32Fetching Pages with requestscode🔒9 min33Parsing HTML with BeautifulSoupcode🔒10 min34Storing Scraped Datacode🔒11 min35Building the Full Scraperproject🔒12 min07Wrap-Up and Next Steps3 capsules
Wrap-Up and Next Steps — 3 chapters.
36Putting It All Togetherintuition🔒9 min37Course-End Test and Self-Checkconcept🔒13 min38Where to Go Nextintuition🔒11 minRatings & reviews
1,347 readersI read the free preview on a whim and ended up finishing the whole thing in two sittings. Superb pacing.
Finally a book that explains the hard parts without hand-waving. The figures alone are worth it.