Skip to content

Instantly share code, notes, and snippets.

@kusal1990
Created June 24, 2022 07:19
Show Gist options
  • Save kusal1990/bbb992198a5d7d302615a143a8b8eb00 to your computer and use it in GitHub Desktop.
Save kusal1990/bbb992198a5d7d302615a143a8b8eb00 to your computer and use it in GitHub Desktop.
def Exam_graph(type_):
print(type_+" dataset Analysis ...............")
for i,v in enumerate(["Train","Test","Dev"],start = 1):
plt.figure(figsize=(9,6))
examName_dict = dict(eval(v+"_multiple_main_"+ type_ +"[\"examName\"].value_counts()"))
plt.title(v+"_ExamName vs No_of_qustions_of_particular_catagory("+type_+")")
plt.barh([i for i in examName_dict.keys()],[i for i in examName_dict.values()])
plt.xlabel("No_of_qustions_of_particular_catagory")
plt.show()
@kusal1990
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment