image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('/kaggle/input/email-spam-classification-dataset-csv/emails.csv')

df = df.drop(columns=['Email No.'])

df.shape

df.isna().sum()

df.duplicated().sum()

df = df.drop_duplicates()

df.duplicated().sum()

results = {}

plt.ylim(0, 1)

plt.figure(figsize=(10, 5))
plt.bar(results.keys(), [result['precision'] for result in results.values()])
plt.title('Precision of Different Models')
plt.xlabel('Models')
plt.ylabel('Precision')
plt.ylim(0, 1)
plt.show()