<jupyter_start><jupyter_text>beginner<jupyter_code>beginner_courses=dict()
for i in df.index:
    val=(df['Difficulty Level'][i])
    if val=='Beginner':
      if df['School'][i] not in beginner_courses:
         beginner_courses[df['School'][i]]=1
      else:
         beginner_courses[df['School'][i]]+=1
beginner_courses = dict( sorted(beginner_courses.items(), key=operator.itemgetter(1),reverse=True))
print('Dictionary in descending order by value : ',beginner_courses)    

top_5_album_views=dict()
j=0
for i in beginner_courses:
  top_5_album_views[i]=beginner_courses[i]
  j+=1
  if(j==5):
    break

names=list(top_5_album_views.keys())
values=list(top_5_album_views.values())

f = plt.figure()
f.set_figwidth(20)
f.set_figheight(10)

c = ['red', 'yellow', 'black', 'blue', 'orange']
  
plt.bar(range(len(top_5_album_views)), values, tick_label=names,color=c)
plt.show()<jupyter_output>Dictionary in descending order by value :  {'School of Programming & Development': 36, 'School of Business': 7, 'School of Data Science': 7, 'School of Product Management': 5, 'School of Artificial Intelligence': 4, 'Career Advancement': 3, 'School of Cybersecurity': 1, 'School of Autonomous Systems': 1, 'School of Cloud Computing': 1}<jupyter_text>intermediate_course<jupyter_code>beginner_courses=dict()
for i in df.index:
    val=(df['Difficulty Level'][i])
    if val=='Intermediate':
      if df['School'][i] not in beginner_courses:
         beginner_courses[df['School'][i]]=1
      else:
         beginner_courses[df['School'][i]]+=1
beginner_courses = dict( sorted(beginner_courses.items(), key=operator.itemgetter(1),reverse=True))
print('Dictionary in descending order by value : ',beginner_courses)    

top_5_album_views=dict()
j=0
for i in beginner_courses:
  top_5_album_views[i]=beginner_courses[i]
  j+=1
  if(j==5):
    break

names=list(top_5_album_views.keys())
values=list(top_5_album_views.values())

f = plt.figure()
f.set_figwidth(20)
f.set_figheight(10)

c = ['red', 'yellow', 'black', 'blue', 'orange']
  
plt.bar(range(len(top_5_album_views)), values, tick_label=names,color=c)
plt.show()<jupyter_output>Dictionary in descending order by value :  {'School of Programming & Development': 81, 'School of Artificial Intelligence': 26, 'School of Business': 9, 'School of Product Management': 8, 'Career Advancement': 8, 'School of Cloud Computing': 7, 'School of Data Science': 5, 'School of Autonomous Systems': 4, 'School of Cybersecurity': 2}<jupyter_text>Advanced-courses<jupyter_code>beginner_courses=dict()
for i in df.index:
    val=(df['Difficulty Level'][i])
    if val=='Advanced':
      if df['School'][i] not in beginner_courses:
         beginner_courses[df['School'][i]]=1
      else:
         beginner_courses[df['School'][i]]+=1
beginner_courses = dict( sorted(beginner_courses.items(), key=operator.itemgetter(1),reverse=True))
print('Dictionary in descending order by value : ',beginner_courses)    

top_5_album_views=dict()
j=0
for i in beginner_courses:
  top_5_album_views[i]=beginner_courses[i]
  j+=1
  if(j==5):
    break

names=list(top_5_album_views.keys())
values=list(top_5_album_views.values())

f = plt.figure()
f.set_figwidth(20)
f.set_figheight(10)

c = ['red', 'yellow', 'black', 'blue', 'orange']
  
plt.bar(range(len(top_5_album_views)), values, tick_label=names,color=c)
plt.show()<jupyter_output>Dictionary in descending order by value :  {'School of Programming & Development': 23, 'School of Artificial Intelligence': 11, 'School of Autonomous Systems': 5, 'School of Data Science': 3, 'School of Cybersecurity': 1, 'School of Cloud Computing': 1}
{'fraction_non_alphanumeric': 0.14962593516209477, 'fraction_numerical': 0.020504294818509284, 'mean_word_length': 6.009708737864078, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '599352', 'license': 'MIT', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1267, 'n_words': 286, 'path': 'Udacity Courses Analysis/Model/Udacity_courses_analysis.ipynb', 'repo_name': 'yagyesh-bobde/ML-Crate', 'size': '3609'}