subject

Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to show age data distribution around 50 with the number of 100 bins. After that, save the histogram to be 'png'. import matplotlib. pyplot as plt
import numpy as np

np. random. seed(5)
ages = [np. random. normal(loc=40,scale=10) for x in range(100)]
#ages distributed around 40
distributed around 40
plt. hist(ages, bins=45) #bins is the number of bars
plt. title("Ages per Population")
plt. xlabel("ages")
plt. ylabel("# of people")
plt. show()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
How can i clip a picture to a question on the computer?
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
You know the right answer?
Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to sh...
Questions
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
question
Mathematics, 23.06.2021 23:20
Questions on the website: 13722366