- $49
Effective Pandas 2 Digital Book
- Includes 1 private space
Includes 1 private space
- Effective Pandas 2 Digital Book
Patterns for Data Manipulation
Master predictable patterns to clean, visualize, prepare, pivot, summarize, and predict data. Write code that is easy to use, debug, come back to a week later, and put into production. Stop worrying about if you will be able to use your Jupyter notebook when you come back tomorrow.
Learn how to quickly and reliable load, clean, and prepare data. Think about data processing like a "recipe".
I have taught 1000's of students how to use Pandas. I have used Pandas since it came out. I have found many warts as well as best-practices. You can learn to avoid the warts and learn the best-practices.
Learn how to wield Pandas for great good. Create win-win situations for you and your future data collaborators!
Meet a Satisfied Reader
Truly, it is one of the most straightforward and powerful data manipulation libraries, yet, because it is so easy to use, no one really spends much time trying to understand the best, most pythonic way to employ the library to its full extent.
If you haven't read Matt Harrison's book and use Pandas, chances are you're like that Chad at the picnic or camping trip that pulls out his guitar to strum along the same basic chords for an hour straight... Well, NO MORE!
Matt Harrison is ready to drop some knowledge on you and have you riffing your own data manipulation solos like you're Slash in "November Rain", or Prince in "Purple Rain"...
The book goes beyond explaining the data structures and methods that underpin Pandas, but he also provides a ton of practical advice regarding best practices in data manipulation and transformations.
For instance, by the time you're done you'll know which functions to use to leverage Pandas' vectorized structures to ensure your code is fast and efficient, which data types provide huge savings in terms of memory allocation, how to chain operations to ensure you're always accessing the correct intermediary dataframe, how to utilize indices to give you superpowers over your data, how to debug chains, merge, join, melt, style, and more.
It is by far, the best book you can get yourself if you want to take your data science skills to the next level, after all, they say modern data science is 90% data cleaning. I mostly agree.
I have recommended this book to every member of my team. REQUIRED READING.
Highest possible recommendation.
"These books are like a lathe to a woodworker or a pottery wheel to a potter."
Some people may be drawn to computer science for the engineering rigor in architecting how software works, but I love the creative pursuit of going through the structured decomposition of a
problem, deciding on a solution, then coding.
-Aaron B. SVP Cyber Crime
NVidia Engineer Agrees
@tunguz
What You'll Learn
Pandas 2 Types
Master PyArrow Types
Create Powerful Visualizations
Clean Tables
Recipes
Powerful Diagrams
"For data science professionals, this book is an absolute must."
I’ve always heard great things from other people, and now I’m seeing it for myself firsthand. This book is full of excellent tips for using Pandas both effectively and efficiently, and the author provides great examples to follow along with. Check it out!
-David H. Principal ML Engineer
What's New in Effective Pandas 2?
All of the code is re-written for Pandas 2
Examples are updated
New diagrams
Chapter exploring types
Chapter on refactoring
Chapter on testing
Over 550 pages!
Reviews in the Wild
• Learning how to manipulate data
"Effective Pandas" is probably the best book on the market.
This will single handily give you everything you need!
@svpino
@rasbt
Nice book
@dan_s_becker
Website
Elijah J
Website
@AlexJonesPhD
but this 'Effective Pandas' style is making me realize Pandas code can actually be aesthetically pleasing.
@hwu76
You know when you are reading a good book. You can’t put it down and have to keep reading it, page after page. It feels like binge-reading, the same way we binge-watch series on Netflix.
When I started learning Data Science, I felt truly overwhelmed by the number of books I could find. Between taking courses, practicing on projects, and competing on Kaggle…how could you find enough time to finish a book? The only answer is to pick books you can’t stop reading.
This is my go-to book for data manipulation with Pandas. The author concentrated on all the best practices that will make you a Jedi of Pandas. A lot of thought has gone into how to break down the subject matter so it is very well organized. It goes from working with series to plotting with Pandas or how to debug.
One specificity of this book is it explains well the chaining method for writing code. It introduces useful Pandas methods like pipe or assigns that are not often seen in courses.
If you are learning Pandas or are an experienced Pandas user, you will for sure benefit from reading this book.
Bonus: At the end of each chapter, you will find exercises that make you practice right away the concepts you’ve just read. My personal advice: do them!
@EyquemBI
Effective Pandas is 350+ pages of no-fluff, get-it-done explanations and advice to help you learn pandas or to level up your existing knowledge and skills.
Matt Harrison has done a masterful job putting together an impressive and orderly collection of helpful instructions and meaningful insights on the pandas library. He starts with a peek under the covers, so you get a good understanding of the core pandas objects - Series and DataFrames - and how they work. Every ensuing chapter builds incrementally on that foundation, with clear and pertinent examples throughout. The book is laid out in such a way that topics flow naturally one to the next and are conducive to a read-through for learning the pandas library piece by piece. But it's also organized into bite-size chunks that make it easy to come back to as a reference later when you need that one little piece of information that you can't quite remember.
One of the things that I really appreciate about Matt's presentation of pandas topics is that he is not shy, while also not being adamant, about sharing his thoughts on the best ways to do things. His coverage of chaining and the associated benefits to code clarity is a good case in point. Everyone is allowed their opinions, but my opinion is that his opinions on these things is pretty darn close to right.
(In fact, I like Effective Pandas so much that I bought it three times - the hard copy on Amazon, a stand-alone digital copy on Matt's web site (store.metasnake.com), and later another digital copy that came bundled with some courses, also from his site. Maybe that last one doesn't completely count...)
At any rate, the book is full of helpful content:
- Clear explanations and usage examples of a boatload of pandas Series and DataFrame attributes and methods.
- Valuable thoughts and suggestions on the best ways to combine pandas operations to be efficient and accurate.
- Effective coverage of all pandas table-steaks topics: loading data, filtering, inspecting dataframes, typing, sorting, merging/joining, grouping, aggregating, shaping, melting, plotting, exporting, debugging (and even more).
- Tips and insights on things like effectively chaining pandas methods, improving memory usage through manipulation of data types, making sure that appropriate constructs are used for accessing intermediate data frames in chained sequences (see notes on lambda functions in ch 10 and on the differences btw .query / .loc in ch 24, for example), and augmenting performance in some areas with Cython.
If you're looking for that one resource that will help you build out your knowledge of pandas, and that you'll go back to again and again, this is it. I highly recommend that you get it now.
And, of course, I also recommend checking out Matt's other book and course offerings at store.metasnake.com. There's a lot of good content there around Python and pandas that delivers value at much of the same level as what you'll see in his Effective Pandas book.
KM
I'm only a few pages into the Effective Pandas book and so far I've found it to be very enjoyable even though the material is mostly known to me. I can't wait to get into the more advanced topics and start applying what I learn to my day-to-day work.
Madhav K
It's effortless to follow with many real-world examples and fantastic tips and coding practices.
Highly recommended
@ammaryh92
Lohith G
I picked this up upon release & out of the dozen or so Pandas' books I've read, this is one I like most.
It's approachable while being thorough, two qualities that usually aren't present in the same book/course
Remek K.
@carltongibson
Website
Martin M
Website
This is the best book for learning how to do chained methods - faster, more memory efficient, and more elegant and pythonic that declarative methods.
A must-have book!
@HarveySummers6
@braev_pete
Carlos R
@ladi_akande
I got this book of Matt on Pandas. The book is wonderfully organized and each chapter builds up your knowledge on the core concepts and clearly charts a picture of what is the purpose of each concept. The author also provides with multiple ways of achieving same results. I like the way how Matt have described the each scenario, graphical/pictorial representation of each topic to give you a visual clarity on what is happening underneath.
Reading the book you can feel that the author has poured in his two plus decades of experience and want to share the most with his audience so that they can implement each scenarios.
B. Live
This book can be used by a beginner to dive into a wonderful world of pandas possibilities but at the same time, a seasoned user can use it to refine his panda's skills do some things more effectively.
If you want to do Pandas the "right way", please study this book. I learned how to stop over-relying on the apply() function and how to do chaining properly.
Carlo L.
This book is for anyone wanting to learn, currently learning or currently using pandas.
Clearly, it is a labor of love:
A lot of thought has gone into how to break down the subject matter so it is very well organised. The page count may seem long (approx. 450) but the book has a great form factor and the text is well-spaced, clear, and legible. So the pages are easy to read and not dense.
One great aspect of Matt's work is his use and treatment of the pandas tool itself (try and get yourself on one of his free "Idiomatic pandas" webinars if you can). His use of chaining has been a game-changer for me and leads to clear and explainable code.
In summary, if you are looking for a book on pandas, this is the book you need - buy it without hesitation.
After reading this book, you will never write pandas code the same way, using method chaining and functional notation, optimizing data types, styling dataframes, and so on.
The book is full of useful information and practical knowledge for the daily use of pandas, and also contains interesting focus on some external features such as Cython, CatBoost or sparklines.
Francis
The book can be used from a beginner to an expert.
It is well organized and the concepts are explained in a clear stepwise manner.
Color illustrations help explain the concepts.
The book has changed my way of programming Pandas.
Perry R.
Fernando
I'm a longtime pandas user, and I have to say that this is THE end-to-end pandas resource.
From doing SQL-like operations in-memory, to statistical analysis, to data visualization - this book covers pandas in its full breadth!
If you've been looking for a great pandas resource...you can stop because you just found it 😉!
I have personally attended "Effective Pandas" live workshop by Matt Harrison on 6/17/2021 and then purchased a PDF version of the book. The quality of his teaching is simply mind-blowing. He has a very deep domain knowledge on the topic of pandas. I come from R and statistics background, so I like having a very detailed background explanation of why some things are structured the way they are. Matt provides such deep insights in his explanations.
@akrasiennen
Website
Tommaso M
Website
Being a developer and teacher myself, when I read a book like this, I like to pay attention and ponder not only the technical matters but the didactical aspects too.
Many authors know their stuff, some of them explain it clearly, but few go the extra mile in order to assure the reader understands. What I mean is that most authors try to get their word out, teachers go further and try to make the ideas get in readers' brains.
I feel Matt Harrison knows its stuff, but he also cares to teach it. For example: giving real world examples makes it easy to relate to the problem at hand. Short chapters are rightly sized knowledge pills. The summary and exercises at the end of each help to make sure one understands.
I feel clarity was in the author's head all the time, and he succeeded. At least for me, Effective Pandas resulted in an easy read, without any major hurdle, covered everything I wanted to learn, and made me like and consider to adopt the chaining style.
There isn't a lot more I can ask from a book.
Dan R.
Website
- The tweak function to clean the df at the beginning of the Jupyter Notebook
- Assign method
- Pipe
I haven’t seen these 3 very often in the online courses. Apply much more.
@EyquemBI
Arie
Website
I have been using Pandas for a long time, so I picked this up thinking I already knew everything about Pandas but I was very wrong. It is a great book from the basics to complex topics and the examples are wonderful.
Tony
Website
This book is really well organized, written, and laid out with excellent color illustrations.
What makes this book particularly invaluable are the learnings from Matt's teaching and consulting experience. Beyond just explaining functionality, Matt draws from practical experience to compare methods, highlight nuances, and explain common pitfalls.
JH
Website
I've learned and used pandas quite a bit mainly by googling problems, but never really knew what the best practices were. This book has taught me new concepts such as chaining and other ways to improve performance such as the categories topic. I would recommend if you want a good foundation on how to perform well using pandas.
Matt P
Website
I have started digging into your book, and it is one of the best technical books in the area of data handling and the best book in the PyData sphere I have owned and read.
John A
Website
Felix L
Website
"like a salad recipe written by a corporate lawyer using a phone autocorrect that only knew Excel formulas. It's like someone took a transcript of a couple arguing at Ikea and made random edits until it compiled without errors."
James M.
@thoughtsondata
P Olson
What I loved about this book is that it helped me understand all the possibilities of using Pandas and made me aware of all the common mistakes to avoid. Matt has done a great job of explaining complex topics in a simple way ✔. The book is full of practical examples, tips, and tricks that can be applied in real-world scenarios. 👍
Before reading this book, I was really struggling to understand all the functions and how to apply them in different scenarios, as pandas provides multiple ways of doing the same thing. And I found the use of chaining operations throughout the examples to be helpful and easy to understand. I am excited to apply these newly gained skills and knowledge in my future projects!! 👀✨
I want to thank Matt for writing a genuinely amazing book. Recommended to anyone who is looking to master Pandas. 🤗
I've been coding for a long time and have a background in object-oriented (OO) software engineering. Based on my experience, I have often found Python libraries and Pythonic code inelegant.
For example, fluent interfaces are a well-accepted OO design technique to promote more intelligible code. The methods of a fluent interface are designed to be a kind of domain-specific language (DSL). By chaining the fluent interface methods, code becomes much more readable.
Over the years, I've rarely seen fluent interfaces in Python libraries, books, blog posts, etc. I most certainly didn't see fluent interfaces in content related to pandas.
That is until I read Matt Harrison's marvelous book.
I found "Effective Pandas" a breath of fresh air - unapologetically opinionated in advising how to write great pandas code. Here's an opening salvo from Chapter 21:
"This chapter explores the "one true way" to create and update columns in pandas. This is potentially the most controversial subject of this book, probably because it is not talked about very often, and the syntax might be unclear at first."
The book goes on to teach pandas code leveraging a fluent interface. Here's an example of the style taught in the book (yes, the example uses the Titanic dataset, get over it):
drop_features = ['PassengerId', 'Name', 'Sex', 'Age', 'Ticket', 'Cabin']
(titanic_train
.assign(Female = lambda df_: df_['Sex'].replace({'female': 1, 'male': 0}),
Embarked = lambda df_: df_['Embarked'].fillna('S'),
PartySize = lambda df_: df_['SibSp'] + df_['Parch'] + 1,
TicketSize = lambda df_: df_.groupby('Ticket').transform('size'))
.drop(columns = drop_features)
)
In my experience, there are two types of coders where the elegance of the above code is immediately apparent:
1 - Coders well-versed in OO design from C-based languages (e.g., C#).
2 - Coders with experience using the mighty dplyr.
I hope the Python community takes the lessons of "Effective Pandas" to heart by embracing pandas as a fluent interface. I also hope more Python libraries will be designed to be fluent.
If you want to take your pandas code to the next level, do yourself a favor and get a copy of "Effective Pandas."
David Langer
Your dedication, commitment, and the unwavering passion you poured into this masterpiece are truly appreciated. I can't help but wish I had discovered your work sooner, as I'm quite thankful for the opportunity to learn from one of the greatest in the field 👌
Andrés García
Alex Butz
David F.
I highly recommend this book. I have been using Pandas for 4-5 years, and this book significantly improves my coding style. You could also find really effective ways to use lots of different aspects of pandas. It's such a well-written book. Thank you for writing Effective Pandas 🐍 Matt Harrison
Cem Özdemir
Effective Pandas is solid
Mike Massey
Absolutely loving this book If you use pandas, even if you're fairly well versed in it, do yourself a favor and buy this.
@CynOsint
@__mharrison__) is the best pandas wrangler I've ever seen
@pyquantnews
The first edition of Effective Pandas was a game changer; I know #2 will follow suit.
@sadiestlawrence
Matt is a great teacher of all topics related to Data Science and Python, and his Pandas book is one of the few books that I keep handy on my work desk. If you are interested in staying up to data with this enormously popular Python Data Science library, I'd recommend checking this book out.
Even professional data scientists can learn something new about pandas from this book.
In general, I don't believe in "the ultimate source" for learning something, but I know an ultimate source when I see one.
And for pandas, it's "Effective Pandas" by Matt Harrison.
Tamás Ujhelyi
My Effective Pandas 2 is starting to get a little worn. Great follow-up to the first edition with all the new pyarrow / Pandas 2 references.
Aaron Buchanan
Matt Harrison is a genius when it comes to Pandas. His approach makes so much sense, especially to do with memory management and efficiency.
Pandas Book Review
"Effective Pandas: Patterns for Data Manipulation" by Matt Harrison is a tour de force in the world of data manipulation with Pandas. As an avid developer and learner, I am always searching for resources that not only explore the technical depths but also excel in delivering knowledge with clarity and effectiveness.
Harrison's expertise shines through every page, creating a seamless blend of technical mastery and pedagogical finesse. What sets this book apart is the author's dedication to ensuring that readers not only absorb information but truly understand and apply it. The commitment to teaching is evident, making the learning experience engaging and transformative.
The utilization of real-world examples is a standout feature of Harrison's approach. These examples serve as practical anchors, allowing readers to connect effortlessly with the challenges presented in data manipulation. Each chapter unfolds like a well-crafted lesson, presenting bite-sized pieces of manageable and captivating knowledge. The inclusion of summaries and exercises at the end of each chapter adds an extra layer of reinforcement, solidifying the understanding of key concepts.
The clarity in presentation is a guiding principle throughout the book. Harrison possesses an in-depth understanding of the material and excels in distilling complex concepts into accessible and comprehensible content. The result is a reading experience that flows effortlessly, devoid of major obstacles, covering every aspect of Pandas with a level of mastery that I, as a reader, aimed to achieve.
"Effective Pandas" not only met my expectations but surpassed them. The book made learning enjoyable and left me contemplating the adoption of the chaining style—a clear testament to its influence. In the realm of technical literature, Matt Harrison has delivered an exemplary guide that ticks all the boxes, ensuring that "Effective Pandas" will undoubtedly stand the test of time as a go-to resource for anyone seeking proficiency in data manipulation with Pandas.
Contents
Best Book to Become a Data Scientist
-lak lakshmanan
Frequently asked questions
What is Pandas useful for?
You will find it being used for:
- Data Analysis
- Statistical work
- Exploratory Data Analysis
- Data pipelines
- Machine Learning
- and more
What is the style of presentation?
How is this different from your other Pandas books?
Effective Pandas is my book and recommendation for all who want to write good Pandas code.
Who is the target audience for this book?
How much Python do I need to use Pandas?
You should have some basic Python skills: Functions, loops, index operations. After that, I really encourage Lambdas (to get the most out of chaining). Comprehension constructs and argument unpacking come in useful as well. Check out my book Learning Python for Data if you want my prereq book.
Your style of writing Pandas code does not play well with formatters like Black.
I learn best by doing. Are there exercises?
Is there any tool that can help me visualize similar to your drawings?
Can you help my team learn Pandas?
Is there an errata?
I have the bundle, do I need to purchase this?
Effective Pandas 2 (and 1) are part of the bundle. You will automatically get access to it.
My company will pay for this. How do I get an invoice?
Awesome. You work for a visionary company that invests in its employees! See this article: https://help.podia.com/en/articles/202-how-to-download-an-invoice-from-a-product-you-have-purchased
Get the Book or the Bundle!
- $49
Effective Pandas 2 Digital Book
- Download
- 3 files
- Includes 1 private space
Includes 1 private space
- Effective Pandas 2 Digital Book
- $99
Pandas2 book/course bundle
- Bundle
- 2 Items
- $249
Effective Pandas Bundle
- Bundle
- 8 Items