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
DochEvi [55]
3 years ago
14

In Lab 7, we worked through a program that displayed the homeless shelter occupancy over time. The same approach can be used for

displaying any dataset where the date and time are stored. For this program, use the lab as a starting point to display public school attendance from NYC OpenData. If you would like to test your program on other data, you can filter for an individual school by viewing the data and filtering on the school number ("School DBN"). Export the file as CSV and save. There is a sample file for the high school on campus on github Modify the program from Lab 7 that displays shelter population over time to: Ask the user to specify the input file, Ask the user to specify the output file, Convert the date column (which is stored as 'YYYYMMDD') to a datetime format recognized by pandas, for example if your dataframe is df, overwrite the 'Date' column to be: df["Date"] = pd.to_datetime(df["Date"].apply(str)) Make a plot of the percent of absent students over time from the data in the input file, and Store the plot in the output file the user specified. A sample run of the program: Enter name of input file:

Engineering
1 answer:
Bezzdna [24]3 years ago
6 0

Answer:

Explanation:

The python code to generate this is quite simple to run.

i hope you understand everything written here, you can as well try out other problems to understand better.

First to begin, we import the package;

Code:

import pandas as pd

import matplotlib.pyplot as plt

name = input('Enter name of the file: ')

op = input('Enter name of output file: ')

df = pd.read_csv(name)

df['Date'] = pd.to_datetime(df["Date"].apply(str))

plt.plot(df['Date'],df['Absent']/(df['Present']+df['Absent']+df['Released']),label="% Absent")

plt.legend(loc="upper right")

plt.xticks(rotation=20)

plt.savefig(op)

plt.show()

This should generate the data(plot) as seen in the uploaded screenshot.

thanks i hope this helps!!!

You might be interested in
What year did Vidal Sassoon come to America ?
tekilochka [14]

Answer:

1970

Explanation:

the answer must enough 20 character, so I...

3 0
3 years ago
Read 2 more answers
Another focus of effective communication, according to Stephen Covey, is ensuring that:
svetoff [14.1K]

Answer:

Stephen Covey believes this principle is the key to effective interpersonal communication. Seek first to understand, then to be understood. This habit is about communicating with others. It's about developing the habit of listening carefully and really understanding the other person BEFORE giving your thoughts.

Explanation:

4 0
3 years ago
Read 2 more answers
Dimensioning a drawing means​
lara [203]

Answer:

Dimensioning a drawing refers to drawing a dimension for every side of the figure.  It means to write the lengths of every side in the figure(2D or 3D)

<em>Hope it helps <3</em>

7 0
3 years ago
What is ductile to brittle transition temperature (DBTT)?
vova2212 [387]

Answer: The answer is given below

Explanation:

Ductile to brittle transition temperature (DBTT) is the temperature when there is a pronounced reduction in the ability of a material to absorb force without being fractured.

It shuld be noted that when this happens, the material transitions from ductile to brittle which is known as ductile to brittle transition temperature(DBTT).

DBTT

7 0
3 years ago
When selecting the appropriate gear for intended direction of travel, automatic transmission equipped vehicles should be placed
True [87]

Answer:

Automatic transmissions should be in Drive and Manual transmissions should be in first gear.

6 0
3 years ago
Other questions:
  • How does a vacuum carpet cleaner work?
    10·2 answers
  • Fin efficiency is defined in relation to the maximum possible heat transfer rate from the fin for given convective conditions. T
    10·1 answer
  • Based on the hardness values determined in Part 1, what is the tensile strength (in MPa) for each of the alloys?
    10·1 answer
  • Determine the combined moment about O due to the weight of the mailbox and the cross member AB. The mailbox weighs 3.2 lb and th
    14·1 answer
  • Determine FBC , the magnitude of the force in member BC, using the method of sections. Assume for your calculations that each me
    7·1 answer
  • Sarah needs to create an architectural drawing for a museum building with an inclined surface. Which presentation view will be t
    15·1 answer
  • Words and numbers can be<br> printed using many different<br> or type styles.
    14·1 answer
  • What truck you like the best
    9·2 answers
  • How many spark plugs does a diesel have? How many glow plugs? If you are a redneck/country person dont answer...I wanna see how
    10·2 answers
  • Can you think of a product that you love even though it may not work perfectly? Why do you love it?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!