text_html_output_1.png
import matplotlib.pyplot as plt

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

import seaborn as sns

df_insure = pd.read_csv('/kaggle/input/medical-insurance/med-insurance.csv')

df_insure.groupby('smoker')['bmi'].mean().plot(kind='bar')
plt.ylabel('Average BMI')
plt.show()