subject

Hi I got a "Name Error" when I made the following entry. It's for my word cloud project in week 6 of the crash course on python. Anyone familiar with the assignment please share how you overcame this thing thank you!! [Refer to image screenshot of entry pic 23] # LEARNER CODE START HERE frequencies = {} file_contents=file_contents. split() str1='' for word in file_contents: str1= ''.join(ch for ch in word if ch. isalnum()) if str1.lower() not in uninteresting_words: if str1.lower() not in frequencies: frequencies[str1.lower()] = 1 else: frequencies[str1.lower()] += 1 cloud = wordcloud. WordCloud() cloud. generate_from_frequencies() return cloud. to_array() # Display your wordcloud image myimage = calculate_frequencies(file_contents ) plt. imshow(myimage, interpolation = 'nearest') plt. axis('off') plt. show() Error message refer to attached pic 24 - NameError Traceback (most recent call last) in 1 # Display your wordcloud image 2 -> 3 myimage = calculate_frequencies(file_contents ) 4 plt. imshow(myimage, interpolation = 'nearest') 5 plt. axis('off') Thank you!


Hi I got a Name Error when I made the following entry. It's for my word cloud project in week 6 o
Hi I got a Name Error when I made the following entry. It's for my word cloud project in week 6 o

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Business professionals of america, and future business leaders of america – phi beta lambda are both open to business students at which levels? check all that apply. elementary school middle school high school college
Answers: 1
question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
Hi I got a "Name Error" when I made the following entry. It's for my word cloud project in week 6 of...
Questions
question
Mathematics, 15.11.2019 09:31
question
Mathematics, 15.11.2019 09:31
Questions on the website: 13722367