From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Exploring DataFrames: Info and describe

Exploring DataFrames: Info and describe

From the course: Data Analysis with Python and Pandas

Exploring DataFrames: Info and describe

- [Instructor] All right, so now let's shift gears from some DataFrame methods that allow us to quickly take a look at the top, bottom, and random rows in our DataFrame. Those methods are great for doing a quick spot check to make sure that all the rows that we wanted to read in are read in and there weren't any major errors upon reading in our DataFrame. The .info() method returns information on the key DataFrame properties, as well as things like memory usage and missing values in our DataFrame. So let's go ahead and call the .info() method on our retail DataFrame. In the top piece ,we get information on our axis. We get information on both our row index, as well as our column index. So we can think about this as combining the information we would get from shape and axis. The next piece is the Column position. So our first column has index zero, our last column is on promotion, and we get the column titles, as well as the data types of each column. And down below that, we get a…

Contents