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
In a food processing facility, a spherical container of inner radius r1 = 40 cm, outer radius r2 = 41 cm, and thermal conductivi
Rashid [163]

Answer:

attached below

Explanation:

5 0
3 years ago
What is the mechanical advantage of a pulley with 3 support ropes?
snow_tiger [21]

Answer:

The mechanical advantage is 3 to 1

Explanation:

A frictionless pulley with three support ropes carries equal tension on each of the ropes thus;

Tension in each pulley rope = T

Total tension in the 3 ropes = 3 × T = 3·T

Direction of the tension forces on each rope = Unidirectional

Total force provided by the 3 ropes = 3·T

Therefore, a force, T, applied at the end of the rope will result in a lifting force of 3·T

Hence, the mechanical advantage = 3·T to T which is presented as follows;

Mechanical \ advantage = \dfrac{3 \cdot T}{T}  = \dfrac{3}{1}

The mechanical advantage = 3 to 1.

5 0
3 years ago
Just to let you know Christmas is in 10 days&lt;3<br><br> lol
Harrizon [31]

Answer:

yay yay

Explanation:

im so excited i cant wait

7 0
3 years ago
Read 2 more answers
Ignoring any losses, estimate how much energy (in units of Btu) is required to raise the temperature of water in a 90-gallon hot
Rudik [331]

Answer:

Q=36444.11 Btu

Explanation:

Given that

Initial temperature = 60° F

Final temperature = 110° F

Specific heat of water = 0.999 Btu/lbm.R

Volume of water = 90 gallon

Mass = Volume x density

1\ gallon = 0.13ft^3

Mass ,m= 90 x 0.13 x 62.36 lbm

m=729.62 lbm

We know that sensible heat given as

Q= m Cp ΔT

Now by putting the values

Q= 729.62 x 0.999 x (110-60) Btu

Q=36444.11 Btu

5 0
3 years ago
PLEASE HURRY!!!
Naily [24]

Answer:

A

Explanation:

He should get a job in engineering to see what it's like to work in the field.

3 0
2 years ago
Read 2 more answers
Other questions:
  • A turbojet aircraft flies with a velocity of 800 ft/s at an altitude where the air is at 10 psia and 20 F. The compressor has a
    8·2 answers
  • On a piece of paper, sketch the x-y stress state and the properly oriented principal stress state. Use the resulting sketch to a
    5·1 answer
  • A series AC circuit contains a resistor, an inductor of 250 mH, a capacitor of 4.40 µF, and a source with ΔVmax = 240 V operatin
    9·2 answers
  • Who tryna play fortnite with me
    11·2 answers
  • Mining is an example of this type of business
    7·1 answer
  • What is the key to being a good engineer?
    15·2 answers
  • Describe a gear train that would transform a counterclockwise input rotation to a counterclockwise output rotation where the dri
    13·1 answer
  • Zack's new home is progressing well, and the foundation work is finished. The general contractor stops by Zack's present home to
    11·1 answer
  • What does polarity give you information about?
    10·1 answer
  • Why is it important to follow the engineering design process before building a prototype
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!