Crash Course on Python Final Project: WordCloud

Crash Course on Python Final Project: WordCloud


Crash Course on Python Final Project: WordCloud Assignment


People facing a problem to submit Final Assignment


Here is Some Tips follow me..


Step 1) Open Notebook



Step 2) You need to Run Code Step by Step
  • First Run import Block 1 using (shift + Enter)



Step 3) Now Run Upload Block 2 using (shift + Enter)
  • After Run code ( Browse button ) Show
  • Upload your Text File



Step 4) Put Your Code on Block 3 using (shift + Enter)

  • # LEARNER CODE START HERE
  • when your code did not show any error


Copy This Code & put it on your assignment

    # LEARNER CODE START HERE
    frequencies =  {}
    taken = []
    for letter in punctuations:
        file_contents =  file_contents.replace(letter,'')
    for word in uninteresting_words:
        w = ' '+word+' '
        file_contents = file_contents.replace(w,' ')
    for word in file_contents.split():
        if word.lower() not in taken:
            taken.append(word.lower())
            if word not in frequencies:
                frequencies[word] = 1
            else:
                frequencies[word] += 1
          
    
    #wordcloud
    cloud = wordcloud.WordCloud()
    cloud.generate_from_frequencies(frequencies)
    return cloud.to_array()


Step 5) Run Block 4 using (shift + Enter)
  • Now your word cloud pic show like this



Step 6) its time to Submit your Assignment


There is Two ways to Submit Assignment

    
    1) Download a Project File --->> Notebook (.ipynb) and upload it

    2) Or you can just Click Button ( Submit Assignment )






Download Full Source Code:



I Hope my article help you..
Thank You..



----------------------------------------------------------------------------------------------------------------------------------------------



----------------------------------------------------------------------------------------------------------------------------------------------




Post a Comment

9 Comments

  1. bro my self monish can u help me in " Crash Course on Python Final Project: WordCloud" can send u r code plse my maid id is monishkumarreddy17@gmail.com

    ReplyDelete
    Replies
    1. its not monishkumareddy17 its monish227@gmail.com

      Delete
  2. tried this code, but the browse button didnt appear

    ReplyDelete
    Replies
    1. i know bro .. u can revert change and run step by step again

      Delete
    2. Browse button did not showed
      What I can do

      Delete
    3. Bro revert all changes and then do all process again step by step, i also face browse button problem.

      Run All the step by step one's you reach a browse button code section.. then Run & wait 2 min max.. browse button will appear..

      Delete
  3. In the final project it shows an Name error bro. It shows like the file_contents is not defined. Can you help me

    ReplyDelete
  4. Thanks for sharing this Article it helped me..

    ReplyDelete