© A.J. Henley and Dave Wolf 2018
A.J. Henley and Dave WolfLearn Data Analysis with Pythonhttps://doi.org/10.1007/978-1-4842-3486-0_3

3. Preparing Data Is Half the Battle

A. J. Henley1  and Dave Wolf2
(1)
Washington, D.C., District of Columbia, USA
(2)
Sterling Business Advantage, LLC, Adamstown, Maryland, USA
 

The second step of data analysis is cleaning the data. Getting data ready for analytical tools can be a difficult task. Python and its libraries try to make it as easy as possible.

With just a few lines of code, you will be able to get your data ready for analysis. You will be able to
  • clean the data;

  • create new variables; and

  • organize the data.

Cleaning Data

To be useful for most analytical tasks , data must be clean. This means it should be consistent, ...

Get Learn Data Analysis with Python: Lessons in Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.