Python for Data Analysis

Want to control Data like a professional? Become a Data Analysis master? Then this is the book for you.

python for data analysis data wrangling with pandas numpy and ipython review

Python for Data Analysis review: is it right for you?

Python for Data Analysis by Wes McKinney focuses on working with data using pandas and NumPy. Our view: it is a strong fit when cleaning, joining, reshaping, and summarizing tables are your immediate learning goals.

Is it beginner-friendly? It includes Python foundations, but a complete programming beginner should practise variables, loops, functions, and files alongside the data examples. It is not a complete course in machine-learning algorithms.

Which edition? The older chapter outline below reflects the second edition. The author provides the third edition as an official open-access web book; use examples and installation instructions that match your edition.

Looking for a practical path into ML? Read the free Starter Kit excerpt on test sets to preview the €19 handbook. No email required.

About the book: Using Python for Data Analysis and exploration

Python for Data Analysis is a book that has the goal of getting its readers super-conformable playing around with structured data in Python. It explains how to manipulate, process, clean and efficiently crunch data in Python using the most well known libraries for this: Numpy and Pandas.

Use the examples to practise the mechanics of analysis, then apply them to a dataset you have not seen before. Understanding a chapter is a starting point; explaining your cleaning decisions and checking the results are what make the skills useful.

Compared to other recommended texts like Python for Data Science Handbook, it has less on the visualisation side and more on the analysis, also covering topics like Time Series and more advanced Pandas Features. Find the full review for this other book here.

Written by Wes McKinney, the main author of the famous Pandas library, this hands-on book is packed with practical cases studies. It’s ideal for analysts that are new to Python and for Python programmers new to scientific computing. After finishing the book, you will have learned to:

  • Use the IPython interactive shell as your primary development environment and also learn the Basics of the Python programming language and Jupyter notebooks.
  • Learn basic features of Numpy, the most used library for numerical analysis and operations in Python.
  • Become and expert using the Pandas library to clean, transform, and combine data.
  • Get some insights onto how to visualise this data using Matplotlib.
  • Learn what Time Series are and how to handle time-dependent data.
  • Learn how to solve problems in web analytics, social sciences, finance, and economics, through detailed examples
Illustration of the 90-day machine learning roadmap PDF

Stay on track. Get the Roadmap.

Download the 90-Day Roadmap PDF + get weekly tips and resources to help you succeed

Python for Data Analysis contents: second-edition overview

python for data analysis book pdf free
  1. Preliminaries: Explanatory chapter with an introduction, description of the goals of the book, and how to install the needed tools.
  2. Python Language Basics, IPython, and Jupyter Notebooks: This chapter presents and introduction to the Python fundamentals and semantics,
  3. Built-in Data Structures, Functions, and Files : Data types, control flow, conditionals and relevant built-in functions. The chapter finishes with how to handle files and how to interface with an Operating System.
  4. NumPy Basics: Arrays and Vectorized Computation: This chapter explains all the concepts from Numpy you need to know to carry out complex mathematical operations and explores the numpy array and different indexing strategies, as well as sorting and boolean operations.
  5. Getting Started with Pandas: This chapter is similar to the previous one but with Pandas instead of numpy. It introduces the pandas Series, Dataframes, and Index objects and explains various ways to play with them and get descriptive analytics.
  6. Data Loading, Storage, and File Formats: How to write and read from text files, work with CSV or TSV files, JSON and HTML and web scrapping. Also explains how to interact with APIs and Databases.
  7. Data Cleaning and Preparation: Chapter 7 gets us working with Pandas on how to filter values, replace missing values, remove duplicates, and how to detect and filter outliers and sample randomly.
  8. Data Wrangling: Join, Combine, and Reshape: This chapter dives into hierarchical indexing, how to combine and merge Dataframes, and how to reshape and pivot them.
  9. Plotting and Visualization: How to use matplotlib to do get visualisations on our data, how to plot with Pandas, and advanced plotting with Seaborn.
  10. Data Aggregation and Group Operations: Now we start getting into more complex stuff: the groupby functionality of Panda’s Dataframes and how to aggregate data.
  11. Time series: Date and Time Data types, basics of time series, frequencies, periods and how to do arithmetic with dates and lastly moving window functions.
  12. Advanced Pandas: What is categorical data, how to manipulate it, and advanced groupby functionalities.

This older outline ends with chapters 13 and 14 on modeling libraries and examples. In the third edition, these are chapters 12 and 13, and the standalone Advanced pandas chapter is no longer listed. Check the author’s contents page before following chapter numbers.

If you want, you can find a video review of the book here:

Also, here you can find the O’Reilly page for this book.

Summary

Python for Data Analysis is a fantastic book to learn how to analyse data using Python, and to serve you as a desk reference to look up how to do certain tasks. It’s a product that can be of great help to developers on a day to day basis. You will learn basic to advanced Pandas and Numpy, and learn how to handle all kinds of data.

If you are working or looking forward to working with large amounts of data, Python for Data Analysis will save you many hours of work, it is very well written, easily explained, and amazingly helpful.

Python for Data Analysis or Python Data Science Handbook? Choose this book when your immediate focus is pandas and data wrangling. Consider our Python Data Science Handbook review if you want a broader tour including visualization and introductory machine learning. For practice, load a CSV, inspect missing values, join a second table, and explain one grouped summary.


Thanks for reading How to Learn Machine Learning and keep on learning! Also, for more books like this one, check out our Data Analysis books section!

Tags: Python for Data Analysis, Data Analysis Books, Python for Data Science.

Subscribe to our awesome newsletter to get the best content on your journey to learn Machine Learning, including some exclusive free goodies!

HOW IS MACHINE LEARNING

Leave a Comment