text_plain_output_1.png
import pandas as pd

import seaborn as sns

data_train = pd.read_csv('../input/nlp-getting-started/train.csv')
data_test = pd.read_csv('../input/nlp-getting-started/test.csv')

data_train = data_train[['id', 'text', 'target']]
data_test = data_test[['id', 'text']]

s = data_train.target.value_counts()
print(s)
print('0 :', round(s[0] / len(data_train) * 100, 2), '%')
print('1 :', round(s[1] / len(data_train) * 100, 2), '%')
sns.countplot(data_train['target'])