text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/idcyberbullying/id-cyberbullying-instagram.tsv', sep='\t', encoding='ISO-8859-1')
df

df.label.value_counts()

comment_len = pd.Series([len(comment.split()) for comment in df['text']])

df['Length'] = df.text.str.split().apply(len)

df['Length'] = df.text.str.split().apply(len)
plt.figure(figsize=(10, 5))
sns.histplot(df[df['label'] == 'CB']['Length'], color='r')
plt.title('Distribution of Tweet Length for not_cyberbullying')
display(df.Length[df['label'] == 'Non_CB'].describe())