Learn practical skills, build real-world projects, and advance your career

Email-Spam-Classifier Project

In this project we train our model to classify whether a mail is spam or not.

Importing the data and Data Cleaning

  • Import the data into Pandas Dataframe
  • Check for Null values and handle them
  • Check for Duplicate rows and remove them

import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
df = pd.read_csv("emails.csv")
df