Building Your First Word Frequency Table
Tally how often each word appears.
What Is a Frequency Table?
A frequency table maps each word to how many times it appears. It is the foundation of nearly every text analysis. 📊
Start With Tokens
First turn text into a list of words, then lowercase them so The and the count as the same token.
words = text.lower().split()All lessons in this course
- Strings, Characters, and Encodings
- Reading Text Files Into Python
- Counting Words and Characters
- Building Your First Word Frequency Table