text_plain_output_1.png image_output_1.png
import pandas as pd

messages = pd.read_csv('../input/spam.csv', encoding='latin-1')
messages.drop(['Unnamed: 2', 'Unnamed: 3', 'Unnamed: 4'], axis=1, inplace=True)
messages = messages.rename(columns={'v1': 'class', 'v2': 'text'})

messages.head()