application_vnd.jupyter.stderr_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 = pd.read_csv('/kaggle/input/diabetes-prediction-dataset/diabetes_prediction_dataset.csv')

gender = pd.pivot_table(df[df['diabetes'] == 1], index='gender', values='age', aggfunc=len).reset_index()
gender.rename(columns={'age': 'amount'}, inplace=True)

diabetes = df[df['diabetes'] == 1]

sns.scatterplot(diabetes, x='HbA1c_level', y='blood_glucose_level', hue='gender')