Counting and Spotting Values
value_counts, unique, and quick checks.
Get to Know Your Column
Before any analysis, you want a feel for what is inside a Series. A few quick methods summarize the contents in seconds. 🔍
A Sample Series
Here is a Series of fruit names with some repeats. We will explore its contents with handy built-in methods.
import pandas as pd
s = pd.Series(['apple', 'pear', 'apple', 'fig', 'pear', 'apple'])All lessons in this course
- A Column With a Name and Index
- Label-Based vs Position-Based Access
- Series Math and Alignment
- Counting and Spotting Values