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
To become familiar with the general equations of plane strain used for determining in-plane principal strain, maximum in-plane s
lukranit [14]

Answer:

a) -1.46 x 10∧-5, 1.445x 10∧-4, -6.355 x 10∧-4

b) 3.926 x 10∧-4, -2.626 x 10∧-4

c) 6.552 x 10∧-4, 6.5 x 10∧-5

Explanation:

a) -1.46 x 10∧-5, 1.445x 10∧-4, -6.355 x 10∧-4

b) 3.926 x 10∧-4, -2.626 x 10∧-4

c) 6.552 x 10∧-4, 6.5 x 10∧-5

The explanation is shown in the attachment. I hope i have been able to help.

3 0
3 years ago
Please help me with this, picture.
Alenkasestr [34]
Maybe try 086 degrees
3 0
3 years ago
A 15.00 mL sample of a solution of H2SO4 of unknown concentration was titrated with 0.3200M NaOH. the titration required 21.30 m
natima [27]

Answer:

a. 0.4544 N

b. 5.112 \times 10^{-5 M}

Explanation:

For computing the normality and molarity of the acid solution first we need to do the following calculations

The balanced reaction

H_2SO_4 + 2NaOH = Na_2SO_4 + 2H_2O

NaOH\ Mass = Normality \times equivalent\ weight \times\ volume

= 0.3200 \times 40 g \times 21.30 mL \times  1L/1000mL

= 0.27264 g

NaOH\ mass = \frac{mass}{molecular\ weight}

= \frac{0.27264\ g}{40g/mol}

= 0.006816 mol

Now

Moles of H_2SO_4 needed  is

= \frac{0.006816}{2}

= 0.003408 mol

Mass\ of\ H_2SO_4 = moles \times molecular\ weight

= 0.003408\ mol \times 98g/mol

= 0.333984 g

Now based on the above calculation

a. Normality of acid is

= \frac{acid\ mass}{equivalent\ weight \times volume}

= \frac{0.333984 g}{49 \times 0.015}

= 0.4544 N

b. And, the acid solution molarity is

= \frac{moles}{Volume}

= \frac{0.003408 mol}{15\ mL \times  1L/1000\ mL}

= 0.00005112

=5.112 \times 10^{-5 M}

We simply applied the above formulas

4 0
3 years ago
A heat pump operates on a vapor-compression refrigeration cycle with R-134a as the working fluid. The refrigerant enters the com
Rudiy27

Answer:

Hello your question has some missing information below are the missing information

The refrigerant enters the compressor as saturated vapor at 140kPa Determine The coefficient of performance of this heat pump

answer : 2.49

Explanation:

For  vapor-compression refrigeration cycle

P1 = P4  ; P1 = 140 kPa

P2( pressure at inlet ) = P3 ( pressure at outlet ) ; P2 = 800 kPa

<u>From pressure table of R 134a refrigerant</u>

h1 ( enthalpy of saturated vapor at 140kPa ) = 239.16 kJ/kg

h2 ( enthalpy of saturated liquid at P2 = 800 kPa and t = 60°C )

= 296.8kJ/kg

h3 ( enthalpy of saturated liquid at P3 = 800 kPa ) = 95.47 kJ/kg

also h4 = 95.47 kJ/kg

To determine the coefficient of performance  

Cop = ( h1 - h4 ) / ( h2 - h1 )

∴ Cop = 2.49

3 0
3 years ago
You will be hiking to a lake with some of your friends by following the trails indicated on a map at the trailhead. The map says
bulgar [2K]
<h2>Answer: <u><em>64.58</em></u></h2>



Explanation:

3 0
3 years ago
Other questions:
  • Stainless steel ball bearings (rho = 8085 kg/m3 and cp = 0.480 kJ/kg·°C) having a diameter of 1.2 cm are to be quenched in water
    10·2 answers
  • With reference to the NSPE Code of Ethics, which one of the following statements is true regarding the ethical obligations of th
    15·1 answer
  • The slope of a moment diagram is the load. a)-True b)-False
    8·1 answer
  • 29
    6·1 answer
  • FREEEEEE POOIIIINTS RIGHT HERE EVERYONE LEVEL UPPPP​
    13·2 answers
  • WARNING:<br><br> when people put links in the answer it is a virus DO NOT DOWNLOAD IT
    15·2 answers
  • Calculate the radius of a circular orbit for which the period is 1 day​
    13·1 answer
  • What are the partial products of 2.3 x 2.6
    15·1 answer
  • HOLA COMO ESTAN TODOS
    14·1 answer
  • The density of a certain type of steel is 8.1 g/cm3. What is the mass of a 100 cm3 chunk of this steel
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!