text_plain_output_1.png image_output_1.png
import matplotlib as plt

import matplotlib.pyplot as plt

import pandas as pd

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

import seaborn as sns

import seaborn as sns

df = pd.read_csv('../input/nlp-getting-started/train.csv')
df_test = pd.read_csv('../input/nlp-getting-started/test.csv')
df.dropna(subset=['text'], inplace=True)
X = df['text']
y = df['target']
X_test = df_test['text']

plt.figure(figsize=(10, 6))
sns.countplot(x=df['target'], palette='Set1', alpha=0.8)
plt.title('Distribution of the Target Label')