From the course: Python for Data Visualization (2019)

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Basic operations

Basic operations

- After reading the contents of a file into your Pandas DataFrame, it's important to examine your data for a couple of reasons. First, you need to assure that you've correctly loaded the data. Second, you have to see what kind of data you have. And third, you have to check the validity of your data set. And I'll go through a couple ways we can do this. So one of the first things you do after loading your data, is look at the head and the tail of your data set. The method head selects the top end number of records from your data set. The method tail selects the bottom end number of records from your data set. This is really important to do as often times your data format could change the route of your data set. Another important thing to do is to check your column data types. You can do this by using the d types attribute. One thing you'll notice is that certain columns are ints, certain columns are floats, whereas others can be objects and you can think…

Contents