import plotly.express as px
# Calculate the distribution of subjects
subject_distribution = df_melted['Subject'].value_counts().reset_index()
subject_distribution.columns = ['Subject', 'Count']
# Plot the distribution of subjects among blind candidates
fig = px.bar(subject_distribution, x='Subject', y='Count', title='Distribution of Subjects Among Blind Candidates',
labels={'Count':'Number of Candidates'}, color='Subject',
template='plotly_dark')
fig.update_layout(paper_bgcolor='#111', font_color='white')
fig.show()