📊 Dataset · CSV
sms_spam.csv dataset
Download sms_spam.csv free (5,572 rows × 2 columns, 469.5 KB). Preview the rows and columns, load it in pandas in one line and practise with 3 Python lessons.
- Size469.5 KB
- Rows5,572
- Columns2
- Used in3 lessons
Preview (first rows)
| label | message |
|---|---|
| ham | Go until jurong point, crazy.. Available |
| ham | Ok lar... Joking wif u oni... |
| spam | Free entry in 2 a wkly comp to win FA Cu |
| ham | U dun say so early hor... U c already th |
| ham | Nah I don't think he goes to usf, he liv |
| spam | FreeMsg Hey there darling it's been 3 we |
| ham | Even my brother is not like to speak wit |
| ham | As per your request 'Melle Melle (Oru Mi |
Columns
| Column | Type | Missing | Example |
|---|---|---|---|
label | text | 0 | ham |
message | text | 0 | Go until jurong point, crazy.. Available |
Load it in Python
import pandas as pd
df = pd.read_csv("sms_spam.csv")
df.head()


