![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 09.09.2020 14:01 adammartinez12
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!
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.11.2019 09:31
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
History, 15.11.2019 09:31
![question](/tpl/images/cats/es.png)
Spanish, 15.11.2019 09:31
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.11.2019 09:31
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.11.2019 09:31
![question](/tpl/images/cats/mat.png)
Mathematics, 15.11.2019 09:31
![question](/tpl/images/cats/mat.png)
Mathematics, 15.11.2019 09:31
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.11.2019 09:31
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 15.11.2019 09:31