Examine a Pandas DataFrame

Your goal

You have a Pandas DataFrame, and you want to get a high-level overview of its structure and contents.

Step-by-step tutorial

A Pandas DataFrame includes many properties to allow you to quickly understand a data frame. Here are several key properties for a hypothetical DataFrame df:

Property Description
df.shape Returns a tuple containing the array dimensions: (num_rows, num_cols)
df.dtypes Returns the names and data types for each column.