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

df = pd.read_csv('/kaggle/input/stroke-prediction-dataset/healthcare-dataset-stroke-data.csv')

df.drop('id', axis=1, inplace=True)

df.gender.value_counts()

df = df[df.gender != 'Other']

df.info()