def attendance (df,col_name,attended,absent):
plt.figure(figsize=[18,3])
df[col_name][show].hist(alpha=.5,bins=10,color='blue',label='show')
df[col_name][noshow].hist(alpha=.5,bins=10,color='red',label='noshow')
plt.legend();
plt.title('comparison acc.to age')
plt.xlabel('Age')
plt.ylabel('Patients Number');
attendance(df,'Age',show,noshow)