text_plain_output_2.png text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('/kaggle/input/email-classification-nlp/SMS_train.csv', encoding='cp1252')
df2 = pd.read_csv('/kaggle/input/email-classification-nlp/SMS_test.csv', encoding='cp1252')

df.isnull().sum()

df = df.replace(to_replace='[^0-9a-zA-Z ]+', value='', regex=True)

df