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]
2 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]2 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
Which statement about tensile stress is true? A. Forces that act perpendicular to the surface and pull an object apart exert a t
svp [43]

Answer:

A. Forces that act perpendicular to the surface and pull an object apart exert a tensile stress on the object.

Explanation:

Tensile stress is referred as a deforming force, in which force acts perpendicular to the surface and pull an object apart, attempting to elongate it.

The tensile stress is a type of normal stress, in which a perpendicular force creates the stress to an object’s surface.

Hence, the correct option is "A."

3 0
3 years ago
Wireless technology has made communicating
emmainna [20.7K]

Answer:

Taking as a basis of calculation 100 mol of gas leaving the conversion reactor, draw andcompletely label a flowchart of this process. Then calculate the moles of fresh methanol feed,formaldehyde product solution, recycled methanol, and absorber off-gas, the kg of steamgenerated in the waste-heat boiler, and the kg of cooling water fed to the heat exchangerbetween the waste-heat boiler and the absorber. Finally, calculate the heat (kJ) that must beremoved in the distillation column overhead condenser, assuming that methanol enters as asaturated vapor at 1 atm and leaves as a saturated liquid at the same pressure.

1

SEE ANSWER

Explanation:

6 0
3 years ago
A gas stream contains 4.0 mol % NH3 and its ammonia content is reduced to 0.5 mol % in a packed absorption tower at 293 K and 10
bagirrra123 [75]

Answer:

Explanation:

Step by step solved solution is given in the attached document.

8 0
3 years ago
What is the primary damage control telephone circuit for
user100 [1]

Answer:

hsyghcjqg9ug9duyssatayfjzurldh

6 0
2 years ago
Sketches are a very efficient way to share ideas.<br> True<br> False
timurjin [86]

Answer:

yes

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • The elementary liquid-phase series reaction
    11·1 answer
  • Determine the Thevenin/Norton Equivalent Circuit with respect to the terminalsa,bas shown in the figure. (Here 1A is an independ
    11·1 answer
  • 2. The initially velocity of the box and truck is 60 mph. When the truck brakes such that the deceleration is constant it takes
    12·1 answer
  • 14. The maximum amount a homeowner should spend on housing is
    11·1 answer
  • Complete the following sentence.
    10·1 answer
  • A hemispherical shell with an external diameter of 500 mm and a thickness of 20 mm is going to be made by casting, located entir
    12·1 answer
  • What are the main causes of injuries when using forklifts?
    5·1 answer
  • 1. A flywheel is suspended by resting the inside of the rim on a horizontal knife edge so that the wheel can swing in a vertical
    5·1 answer
  • The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
    12·2 answers
  • A conceptual issue can be resolved by which of the following?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!