text_html_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']

name_cols = ['Sex', 'BP', 'Cholesterol']
for name_col in name_cols:
    df_Dr = df_drug.groupby(['Drug', name_col]).size().reset_index(name='Count')

fig, axes = plt.subplots(1, 2, figsize=(9, 6))
sns.swarmplot(ax=axes[0], x='Drug', y='Age', data=df_drug, color='green')
sns.swarmplot(ax=axes[1], x='Drug', y='Na_to_K', data=df_drug)