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
In a surface grinding operation, the wheel diameter = 8.0 in, wheel width = 1.0 in, wheel speed = 6000 ft/min, work speed = 40 f
Katen [24]

Answer: the answer will be d because it is the right one to be

Explanation:

7 0
3 years ago
Consider tests of an unswept wing that spans the wind tunnel and whose airfoil section is NACA 23012. Since the wing model spans
Dominik [7]

Answer:

Check the explanation

Explanation:

to know the lift per unit span (N/m) that is expected to be measured when the wing attack angle is 4°

as well as the corresponding section lift coefficient and die moment coefficient .

Kindly check the attached image below to see the step by step explanation to the above question.

3 0
3 years ago
Can I get a hand? Thanks y’all much luv
Lilit [14]

Answer:

C

Explanation:

3 0
3 years ago
This search compares the target value with the middle element in the collection, then ignores the half of the collection in whic
love history [14]

Answer:

d) Binary

Explanation:

Binary search is a search algorithm that finds the position of a value in an ordered array. It compares the value with the element in the middle of the array, if they are not equal, half in which the value cannot be eliminated and the search continues in the remaining half until the value is found.

7 0
3 years ago
I’m doing a project on renewable energy. There are 6 energy sources. Solar, wind, geothermal, hydroelectric, tidal, and biomass.
nalin [4]

Answer:

"Biofuels"

Explanation:

I don't know if this counts but I guess it's not one of those.

6 0
2 years ago
Read 2 more answers
Other questions:
  • Carbon dioxide (CO2) at 1 bar, 300 K enters a compressor operating at steady state and is compressed adiabatically to an exit st
    11·1 answer
  • Consider 1.0 kg of austenite containing 1.15 wt% C, cooled to below 727C (1341F). (a) What is the proeutectoid phase? (b) How
    14·1 answer
  • The device whose operation closely matches the way the clamp-on ammeter works is
    8·1 answer
  • Passband to baseband conversion: Consider the following passband signal,
    14·1 answer
  • An alloy is evaluated for potential creep deformation in a short-term laboratory experiment. The creep rate is found to be 1% pe
    7·1 answer
  • Which is the correct definition of schematic? a type of computer program that project managers use to track engineers on a proje
    13·1 answer
  • Use superpositions find​
    8·1 answer
  • 3. What type of tool do you use to make angles?
    15·1 answer
  • What computer program can you use to publish and share a research project with others?
    7·1 answer
  • Ferroconcrete is reinforced concrete that combines concrete and ________. A. Lead c. Copper b. Iron d. Aluminum.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!