Skip to content

Instantly share code, notes, and snippets.

@kusal1990
Created June 24, 2022 07:25
Show Gist options
  • Save kusal1990/c2329ec41a08b7c3a0579119707d197c to your computer and use it in GitHub Desktop.
Save kusal1990/c2329ec41a08b7c3a0579119707d197c to your computer and use it in GitHub Desktop.
def Year_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_ +"[\"year\"].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