image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

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

df.count()

plt.hist(df[(df['test preparation course'] == 'none') & (df['gender'] == 'female')]['math score'], label='Female-None')
plt.hist(df[(df['test preparation course'] == 'completed') & (df['gender'] == 'female')]['math score'], label='Female-Completed')
plt.legend()
plt.show()