text_plain_output_1.png
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

df_drug = pd.read_csv('../input/drugsets/drug200.csv')
df_drug

name_cols = ['Sex', 'Drug', 'BP', 'Cholesterol']
for name_col in name_cols:
    print('\n')
    plt.figure(dpi=200)
    print(df_drug[name_col].value_counts())
    sns.countplot(x=df_drug[name_col])
    plt.title(str(name_col) + ' Counts')
    plt.show()