From the course: Advanced Hands-On Python: Working with Excel and Spreadsheet Data

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Exploring DataFrame content

Exploring DataFrame content

- [Instructor] In this example, we're going to take a closer look at the data frame structure and how we can inspect its content. And again, just as a reminder here, data frames are a fairly large subject and I'm not going to cover all the features here. I'm just going to focus on some of the basics and I would suggest you check out some of the other courses here in the library to learn more about Pandas and data frames if you're interested. So let's open up our example file. It's going to be pandas_explore, and I already have some code to load the financial sample data which will give us a data frame. So let's start off by examining the data frames shape which will give us the dimensions of the data and to do that, I'll print out the data frames shape. And let's also use the describe function which will give us some detailed summary information about the data. All right, so let's go ahead and save and let's collapse this down so we have some more room. All right, and let's run this…

Contents