Chapter 1

Conditioning Your Data

IN THIS CHAPTER

Bullet Working with NumPy and pandas

Bullet Knowing your data

Bullet Working with symbolic variables

Bullet Fixing missing data

Bullet Creating data slices

Bullet Adding data elements and modifying data type

“In God we trust. All others must bring data.”

— W. EDWARDS DEMING

The characteristics, content, type, and other elements that define your data in its entirety make up the data's shape. The shape of your data determines the kinds of tasks you can perform with it. In order to make your data amenable to certain types of analysis, you must shape it into a different form. Think of the data as clay and you as the potter, because that’s the sort of relationship that exists. However, instead of using your hands to shape the data, you rely on functions and algorithms to perform the task. This chapter helps you understand the tools you have available to shape data and the ramifications ...

Get Coding All-in-One For Dummies, 2nd Edition 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.