Created
June 24, 2022 07:25
-
-
Save kusal1990/c2329ec41a08b7c3a0579119707d197c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok