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)

df = pd.read_csv('/kaggle/input/diabetes-prediction-dataset/diabetes_prediction_dataset.csv')

gender_counts = df['gender'].value_counts()

diabetes_counts = df['diabetes'].value_counts()
plt.pie(diabetes_counts.values, labels=diabetes_counts.index, autopct='%1.1f%%')
plt.title('Pie Chart of Diabetes')
plt.show()