Buy new:
-33% $43.94
FREE delivery Saturday, May 18
Ships from: Amazon.com
Sold by: Amazon.com
$43.94 with 33 percent savings
List Price: $65.99

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE Returns
FREE delivery Saturday, May 18
Or fastest delivery Thursday, May 16. Order within 11 hrs 2 mins
In Stock
$$43.94 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$43.94
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
30-day easy returns
30-day easy returns
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
30-day easy returns
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$38.68
FREE Returns
FREE delivery May 25 - 31
Or fastest delivery May 24 - 30
$$43.94 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$43.94
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Kindle app logo image

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.

QR code to download the Kindle App

Something went wrong. Please try your request again later.

Data Science from Scratch: First Principles with Python 2nd Edition

4.4 4.4 out of 5 stars 708 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$43.94","priceAmount":43.94,"currencySymbol":"$","integerValue":"43","decimalSeparator":".","fractionalValue":"94","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"u92N%2Fbv8ksKIJgQE50diOpYTFt5cHp94wVEuOov8p%2BsUOITTz0yB2kunlifbrhn%2B5idnexY1srs8mTeZty3fzglVlJ%2FI%2BcFzG9J9xPSD2xlYSNwLfUeCRKoPATk9CijasHgqQHkWS%2FIygI3rQOnDbg%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$38.68","priceAmount":38.68,"currencySymbol":"$","integerValue":"38","decimalSeparator":".","fractionalValue":"68","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"u92N%2Fbv8ksKIJgQE50diOpYTFt5cHp94684lmepotfbcZ%2F%2FuLXD5Zhndxbjq0P4zcXgX7uNxsw%2FAPKa8pcJ8RPMLKQqN5Y9U8gbklAMq3UgzAhod5m3sQx4XhqYFIZgQ%2FuVM1ROY7HTOqFR25by0cftvGXs%2BqRaztwUP5pDt8f7QWrRlHALJFCUzKiILyEbF","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

To really learn data science, you should not only master the tools—data science libraries, frameworks, modules, and toolkits—but also understand the ideas and principles underlying them. Updated for Python 3.6, this second edition of Data Science from Scratch shows you how these tools and algorithms work by implementing them from scratch.

If you have an aptitude for mathematics and some programming skills, author Joel Grus will help you get comfortable with the math and statistics at the core of data science, and with the hacking skills you need to get started as a data scientist. Packed with New material on deep learning, statistics, and natural language processing, this updated book shows you how to find the gems in today’s messy glut of data.

  • Get a crash course in Python
  • Learn the basics of linear algebra, statistics, and probability—and how and when they’re used in data science
  • Collect, explore, clean, munge, and manipulate data
  • Dive into the fundamentals of machine learning
  • Implement models such as k-nearest neighbors, Naïve Bayes, linear and logistic regression, decision trees, neural networks, and clustering
  • Explore recommender systems, natural language processing, network analysis, MapReduce, and databases.
.
Read more Read less

Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$43.94
Get it as soon as Saturday, May 18
In Stock
Ships from and sold by Amazon.com.
+
$44.99
Get it as soon as Saturday, May 18
In Stock
Ships from and sold by Amazon.com.
+
$43.99
Get it as soon as Saturday, May 18
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

From the brand

Editorial Reviews

About the Author

Joel Grus is a research engineer at the Allen Institute for Artificial Intelligence. Previously he worked as a software engineer at Google and a data scientist at several startups. He lives in Seattle, where he regularly attends data science happy hours.

Product details

  • Publisher ‏ : ‎ O'Reilly Media; 2nd edition (June 11, 2019)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 403 pages
  • ISBN-10 ‏ : ‎ 1492041130
  • ISBN-13 ‏ : ‎ 978-1492041139
  • Item Weight ‏ : ‎ 1.6 pounds
  • Dimensions ‏ : ‎ 6.9 x 0.9 x 9.1 inches
  • Customer Reviews:
    4.4 4.4 out of 5 stars 708 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Joel Grus
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Joel Grus is Principal Engineer at Capital Group, where he leads a small team that designs and implements machine learning and data products. Before that he was a software engineer at the Allen Institute for AI and Google, and a data scientist at a variety of startups.

He's the author of the the beloved "Data Science from Scratch", the quirky "Ten Essays on Fizz Buzz", and the polarizing JupyterCon talk "I Don't Like Notebooks".

He lives in Seattle, where he regularly attends data science happy hours. He blogs infrequently at joelgrus.com.

Customer reviews

4.4 out of 5 stars
4.4 out of 5
708 global ratings
The BEST book for learning how many data science functions work under the hood - START HERE!
5 Stars
The BEST book for learning how many data science functions work under the hood - START HERE!
Did you see something on the news about ChatGPT, Stable Diffusion, or some other big development that made you want to look into machine learning?Maybe you truly plan on entering data science as a field but don't know where to start?Or perhaps you've seen one of the author's brilliant/hilarious talks about why he doesn't like Jupyter Notebooks or how to answer the infamous "FizzBuzz" programming interview question using Tensorflow neural networks (seriously, look up Joel Grus on YouTube).If you know a little bit of Python, a little bit of relevant math, and want to go into any data science or machine learning path, then this book is a must-have. It certainly won't be the only resource you'll need, but it helps you get the most out of other content you'll likely look into later (like how to code up a machine learning pipeline, or maybe a large language model if you're really adventurous).Far too many machine learning lessons out there just tell you to import certain Python libraries (scikit-learn for example) and start using them without giving you any basic understanding of how those imported functions even work to begin with. Even to this day there are still college courses and coding bootcamps that ask you to download a Jupyter Notebook file and just hit "Shift + Enter" and look at the output.You're not going to learn how to code that way!!!Joel Grus does an excellent job of filling in this gap by teaching you more Python than what a statistics professional would usually know and more math than what a typical software developer would know. And that's key if you want to go into a field that relies on both.All the information for Python and math that you need to get started is here. It's 27 chapters that get you familiar with Python and how to use it, as well as the math used in data science and ML (linear algebra, probability and statistics, algorithms, etc).You eventually learn enough of both as you go through the chapters to start applying what you learn for some real-world usage.I've had this book for years and it's still as useful as when it first came out, but the only exception I've seen is that the Twitter API tutorial in the book no longer applies to the paid format that Twitter now uses to access that feature. The tutorial is still good for learning how API's get put to use.Once you've read this book and have gotten familiar with all it has to offer, your next step will probably involve looking into a book about how to actually use pre-built data science libraries (like what you find in the Anaconda distribution of Python).This book may turn out to be heavily responsible for my first startup, but that's a story for later.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on May 15, 2020
Let me start this review by explaining clearly who this book is for: anyone who has had some form of introduction (even if concise) to programming in Python, algebra, statistics, and probability will find this book a great introduction to Data Science. While the author does a great job at having a crash course on these topics (and I even learned a thing or two here and there), I can see the contents being a bit overwhelming if this is your first point of contact with these subjects. However, should you meet the requirements I mentioned above, you'll find this book a breeze! Joel does a good job at explaining the topics using his signature brand of humor, keeping the read entertaining even in the most advanced areas. I'd even say that this is a must read if you are considering going into machine learning, since it teaches you a thing or two in the topic as well. Please keep in mind that the book is monochrome. If that bothers you, consider viewing the electronic version.

TLDR: If you're looking for a concise introduction to data science and have a bit of knowledge of basic Python, algebra, statistics and probability, look no further than this book! Otherwise, come back once you've picked up those tools and you'll feel right at home :)
24 people found this helpful
Report
Reviewed in the United States on April 17, 2023
Did you see something on the news about ChatGPT, Stable Diffusion, or some other big development that made you want to look into machine learning?

Maybe you truly plan on entering data science as a field but don't know where to start?

Or perhaps you've seen one of the author's brilliant/hilarious talks about why he doesn't like Jupyter Notebooks or how to answer the infamous "FizzBuzz" programming interview question using Tensorflow neural networks (seriously, look up Joel Grus on YouTube).

If you know a little bit of Python, a little bit of relevant math, and want to go into any data science or machine learning path, then this book is a must-have. It certainly won't be the only resource you'll need, but it helps you get the most out of other content you'll likely look into later (like how to code up a machine learning pipeline, or maybe a large language model if you're really adventurous).

Far too many machine learning lessons out there just tell you to import certain Python libraries (scikit-learn for example) and start using them without giving you any basic understanding of how those imported functions even work to begin with. Even to this day there are still college courses and coding bootcamps that ask you to download a Jupyter Notebook file and just hit "Shift + Enter" and look at the output.

You're not going to learn how to code that way!!!

Joel Grus does an excellent job of filling in this gap by teaching you more Python than what a statistics professional would usually know and more math than what a typical software developer would know. And that's key if you want to go into a field that relies on both.

All the information for Python and math that you need to get started is here. It's 27 chapters that get you familiar with Python and how to use it, as well as the math used in data science and ML (linear algebra, probability and statistics, algorithms, etc).

You eventually learn enough of both as you go through the chapters to start applying what you learn for some real-world usage.

I've had this book for years and it's still as useful as when it first came out, but the only exception I've seen is that the Twitter API tutorial in the book no longer applies to the paid format that Twitter now uses to access that feature. The tutorial is still good for learning how API's get put to use.

Once you've read this book and have gotten familiar with all it has to offer, your next step will probably involve looking into a book about how to actually use pre-built data science libraries (like what you find in the Anaconda distribution of Python).

This book may turn out to be heavily responsible for my first startup, but that's a story for later.
Customer image
5.0 out of 5 stars The BEST book for learning how many data science functions work under the hood - START HERE!
Reviewed in the United States on April 17, 2023
Did you see something on the news about ChatGPT, Stable Diffusion, or some other big development that made you want to look into machine learning?

Maybe you truly plan on entering data science as a field but don't know where to start?

Or perhaps you've seen one of the author's brilliant/hilarious talks about why he doesn't like Jupyter Notebooks or how to answer the infamous "FizzBuzz" programming interview question using Tensorflow neural networks (seriously, look up Joel Grus on YouTube).

If you know a little bit of Python, a little bit of relevant math, and want to go into any data science or machine learning path, then this book is a must-have. It certainly won't be the only resource you'll need, but it helps you get the most out of other content you'll likely look into later (like how to code up a machine learning pipeline, or maybe a large language model if you're really adventurous).

Far too many machine learning lessons out there just tell you to import certain Python libraries (scikit-learn for example) and start using them without giving you any basic understanding of how those imported functions even work to begin with. Even to this day there are still college courses and coding bootcamps that ask you to download a Jupyter Notebook file and just hit "Shift + Enter" and look at the output.

You're not going to learn how to code that way!!!

Joel Grus does an excellent job of filling in this gap by teaching you more Python than what a statistics professional would usually know and more math than what a typical software developer would know. And that's key if you want to go into a field that relies on both.

All the information for Python and math that you need to get started is here. It's 27 chapters that get you familiar with Python and how to use it, as well as the math used in data science and ML (linear algebra, probability and statistics, algorithms, etc).

You eventually learn enough of both as you go through the chapters to start applying what you learn for some real-world usage.

I've had this book for years and it's still as useful as when it first came out, but the only exception I've seen is that the Twitter API tutorial in the book no longer applies to the paid format that Twitter now uses to access that feature. The tutorial is still good for learning how API's get put to use.

Once you've read this book and have gotten familiar with all it has to offer, your next step will probably involve looking into a book about how to actually use pre-built data science libraries (like what you find in the Anaconda distribution of Python).

This book may turn out to be heavily responsible for my first startup, but that's a story for later.
Images in this review
Customer image
Customer image
11 people found this helpful
Report
Reviewed in the United States on July 25, 2019
A good book for starters. It should definitely have color images.
One person found this helpful
Report
Reviewed in the United States on July 28, 2021
This is a great book. Doing everything from scratch and not just using numpy, sklearn, etc is a great way to learn what's really going on underneath. I'm surprised how far he gets along this path. By the end, you will have implemented a keras-like deep learning setup. It won't be fast enough for production use since it's all using Lists underneath, but you'll be able to see how it all fits together. Also, coming from a more typed language background, I loved the type annotations.
7 people found this helpful
Report
Reviewed in the United States on March 17, 2020
This book is suitable for people with basic python programming skills. It is very good for beginners and advanced users alike. The codes are very clear and without errors. This book teaches you the basics and introduce some expert level topics for you to explore further if keen. If you are a novice data analyst and some harder topics throw you off, you should probably revisit the topics after you have gain more knowledge on data science.

I highly recommend this book as your first book into data science because the codes and thought processes are very clear. 70-80% of the book are data science foundation and basics for you to tackle harder topics later.
6 people found this helpful
Report

Top reviews from other countries

KB
5.0 out of 5 stars Nice book
Reviewed in Mexico on September 3, 2022
This book is good. Yes it’s explains from scratch and with python codes. Easy to grasp.
One person found this helpful
Report
rc
2.0 out of 5 stars Couldn't get Scratch file to work
Reviewed in the United Kingdom on September 11, 2023
I was enjoying this book until I got to the Chapters requiring use of the Scratch files. I spend hours trying to get them to work and to no avail. If you are selling a book for £30 everything should be ready to go. Scouring GitHub for information on how to use a file required by a large portion of the book is unacceptable. Returned.
Marco
5.0 out of 5 stars Pleasant to read and Informative
Reviewed in Germany on July 28, 2023
Mr. Grus' book is one of the better data science book I have set my eyes on.

His writing style is friendly and informal. Despite this he covers the mathematical and Computational topics in reasonable depth and always points to further reading at the end of chapters.

The fact that all code used in the book is also explained therein makes the algorithms very graspable.

I would recommend this book anybody who wants to either start with data science or fill in some gaps like was the case with me.

I would love read more books written by Mr. Grus'. I have become a fan.
Debora Bonini
2.0 out of 5 stars Not bad, but not good either
Reviewed in Italy on October 29, 2021
The book is useful to grasp the basic concept behind data science. However it gets pretty messy as the topics become more complex, especially when the python code is shown without too much of explanations. If you need a book to learn python for data science, there are many other alternatives.
One person found this helpful
Report
Dragos Manailoiu
5.0 out of 5 stars Insane book
Reviewed in Canada on November 23, 2019
Great read if you're starting out in data science has no typos and is easy to read through
Highly recommended if that's the first book you buy
3 people found this helpful
Report