text_html_output_1.png
import pandas as pd

import pandas as pd

import seaborn as sns

import seaborn as sns

pd.options.display.max_colwidth = 255
df = pd.read_csv('../input/airline-sentiment/Tweets.csv')

import seaborn as sns

df_neg = df.query("airline_sentiment == 'negative'").head(1000).copy()
df_neu = df.query("airline_sentiment == 'neutral'").head(1000).copy()
df_pos = df.query("airline_sentiment == 'positive'").head(1000).copy()
df_balanced = pd.concat([df_neg, df_neu, df_pos], ignore_index=True)
df_balanced = df_balanced.sample(frac=1).reset_index(drop=True)
comments = df_balanced['text'].copy()
sns.countplot(x='airline_sentiment', data=df_balanced)