image_output_1.png
from pandas.plotting import scatter_matrix

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_counts = df['gender'].value_counts()

diabetes_counts = df['diabetes'].value_counts()

correlation_matrix = df.corr(numeric_only=True)

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

from pandas.plotting import scatter_matrix

sns.violinplot(x=df['diabetes'], y=df['age'])
plt.xlabel('Diabetes')
plt.ylabel('Age')
plt.title('Violin Plot of Diabetes and Age')
plt.show()