1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
masha68 [24]
3 years ago
6

Write a program that computes the minimum, maximum, average and standard deviation of the population over time for a borough (en

tered by the user). Your program should assume that the NYC historical population data file, nycHistPop.csv is in the same directory.A sample run of your program:
Enter borough: Staten Island
Average population: 139814.23076923078
Maximum population: 474558
and another run:

Enter borough: Brooklyn
Average population: 1252437.5384615385
Maximum population: 2738175
Computers and Technology
1 answer:
IrinaK [193]3 years ago
4 0

Answer:

import pandas as pd #importing pandas library as pd

import matplotlib.pyplot as plt #importing matplotlib.pyplot as plt

pop=pd.read_csv('nycHistPop.csv') #reading the csv file

borough=input('Enter borough name:') #asking the user for borough namme

# image=input('Enter image name:')

# pop['Fraction']=pop[borough]/pop['Total']

# pop.plot(x='Year', y='Fraction')

print("Minimum population",pop[borough].min()) #printing the minimum population of borough

print("Maximum population",pop[borough].max()) #printing the maximum population of borough

print("Average population",pop[borough].mean()) #printing the average population of borough

print("Standard deviation",pop[borough].std()) #printing the standard deviation of borough

# fig=plt.gcf()

# fig.savefig(image)

Explanation:

You might be interested in
The LPN/LVN cares for an older client admitted to the hospital for treatment of a fractured femur. The LPN/LVN notes the client
vazorg [7]

Answer:D.Social interaction.

Explanation: Social interaction is the term used to explain the social exchanges taking place between two or more people. Through social interaction people design rules,regulations, institutions and systems within which they live their lives.

In late adulthood,social interaction is very vital to help the person to develop a good self esteem, the LPN/LVN(licensed vocational nurse/license practical nurse) plan should include social interaction to help the client.

3 0
3 years ago
Read 2 more answers
Which of the following does NOT describe a node?
erica [24]

Answer:

hi sis i love you

Explanation:

6 0
3 years ago
Read 2 more answers
The process of __________ encourages members to accept responsibility for the outcomes of a group and for changing the style in
soldier1979 [14.2K]

Answer:

The correct answer to the following question will be Option B (Interpersonal feedback).

Explanation:

  • Interpersonal feedback seems to be a mechanism under which someone talks. Individuals deliver a message regarding their sensations and expectations of actions by another.
  • It encourages employees to take obligation for a group's results and to change the look they correspond to many other people in.

Therefore, Interpersonal feedback is the right answer.

8 0
3 years ago
In Adobe illustrator cc 2017 which of the following export file ​
eduard

Explanation:

In Adobe illustrator cc (2017) , of the following export file formats cannot preserve transparency

8 0
3 years ago
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Pani-rosa [81]

Answer:

¹²³⁴⁵⁶⁷⁸⁹

Explanation:

4 0
4 years ago
Other questions:
  • Which feature of Microsoft power point allowed you to put a picture in every slide
    8·1 answer
  • If the polar bear were taken out of the food chain what would happen to the seal population
    10·1 answer
  • I was not supposed to upgrade my iPad to iOS 11 due to testing but it automatically did when I was charging it. Is there a way t
    11·1 answer
  • How can you tell that a rolling soccer ball is in motion
    5·1 answer
  • How do you view a presentation as your audience would see it?
    14·2 answers
  • What effect is this most likely to have in readers
    15·1 answer
  • What is it important to test cabless?​
    7·1 answer
  • Write a recursive method called, doMyMath, which takes as input any positive integer and calculates the factorial (use comments
    13·1 answer
  • PLEASE SOMEONE PLEASE HELP ME OUT!!!!
    10·2 answers
  • NFPA 780, Standard for the Installation of Lightning Protection Systems provides information on the installation of _____ for li
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!