image_output_1.png
import pandas as pd

df = pd.read_csv('/kaggle/input/students-performance-in-exams/StudentsPerformance.csv')

df.count()

men_count = len(df[df['gender'] == 'male'])
female_count = len(df[df['gender'] == 'female'])
print('men_count:', men_count)
print('female_count:', female_count)