DataFrame Info & Stats
After loading data, you need to understand its structure and contents. Pandas provides many inspection methods.
Basic Properties
Loading Pandas Playground...
Data Types
Check the type of each column:
Loading Pandas Playground...
Descriptive Statistics
Get statistical summary of numeric columns:
Loading Pandas Playground...
Info Method
Get a comprehensive summary:
Loading Pandas Playground...
Preview Methods
View portions of your data:
Loading Pandas Playground...
Exercise: Explore Data
Loading Exercise...
Exercise: Count Values
Loading Exercise...
Key Points
.shapereturns (rows, columns) tuple.dtypesshows column data types.describe()gives statistical summary.head(n)/.tail(n)preview data.value_counts()counts unique values.isnull().sum()counts missing values
Up next · Lesson 6 of 42
Selecting Columns
1 min read
5 of 42 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

