text_plain_output_1.png
import matplotlib.pyplot as plt

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

df1 = pd.read_csv('../input/email-spam-dataset/completeSpamAssassin.csv')
df1 = df1[['Body', 'Label']]
df2 = pd.read_csv('../input/email-spam-dataset/enronSpamSubset.csv')
df2 = df2[['Body', 'Label']]
df3 = pd.read_csv('../input/email-spam-dataset/lingSpam.csv')
df3 = df3[['Body', 'Label']]
data = df1.append(df2).append(df3)
data = data.reset_index(drop=True)

data.dtypes

data['len'] = data['Body'].apply(lambda x: len(str(x)))
data
print('Quantiles of data : ')
print(data['len'].quantile([0, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99, 1]), '\n')
fig = plt.figure(figsize=(10, 7))
plt.ylim(-50, 5000)
plt.boxplot(data['len'])