0Pricing
Data Science Academy · Lesson

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

  1. A Column With a Name and Index
  2. Label-Based vs Position-Based Access
  3. Series Math and Alignment
  4. Counting and Spotting Values
← Back to Data Science Academy