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
Initially when 1000.00 mL of water at 10oC are poured into a glass cylinder, the height of the water column is 1000.00 mm. The w
Dafna11 [192]

Answer:

\mathbf{h_2 =1021.9 \  mm}

Explanation:

Given that :

The initial volume of water V_1 = 1000.00 mL = 1000000 mm³

The initial temperature of the water  T_1 = 10° C

The height of the water column h = 1000.00 mm

The final temperature of the water T_2 = 70° C

The coefficient of thermal expansion for the glass is  ∝ = 3.8*10^{-6 } mm/mm  \ per ^oC

The objective is to determine the the depth of the water column

In order to do that we will need to determine the volume of the water.

We obtain the data for physical properties of water at standard sea level atmospheric from pressure tables; So:

At temperature T_1 = 10 ^ 0C  the density of the water is \rho = 999.7 \ kg/m^3

At temperature T_2 = 70^0 C  the density of the water is \rho = 977.8 \ kg/m^3

The mass of the water is  \rho V = \rho _1 V_1 = \rho _2 V_2

Thus; we can say \rho _1 V_1 = \rho _2 V_2;

⇒ 999.7 \ kg/m^3*1000 \ mL = 977.8 \ kg/m^3 *V_2

V_2 = \dfrac{999.7 \ kg/m^3*1000 \ mL}{977.8 \ kg/m^3 }

V_2 = 1022.40 \ mL

v_2 = 1022400 \ mm^3

Thus, the volume of the water after heating to a required temperature of  70^0C is 1022400 mm³

However; taking an integral look at this process; the volume of the water before heating can be deduced by the relation:

V_1 = A_1 *h_1

The area of the water before heating is:

A_1 = \dfrac{V_1}{h_1}

A_1 = \dfrac{1000000}{1000}

A_1 = 1000 \ mm^2

The area of the heated water is :

A_2 = A_1 (1  + \Delta t  \alpha )^2

A_2 = A_1 (1  + (T_2-T_1) \alpha )^2

A_2 = 1000 (1  + (70-10) 3.8*10^{-6} )^2

A_2 = 1000.5 \ mm^2

Finally, the depth of the heated hot water is:

h_2 = \dfrac{V_2}{A_2}

h_2 = \dfrac{1022400}{1000.5}

\mathbf{h_2 =1021.9 \  mm}

Hence the depth of the heated hot  water is \mathbf{h_2 =1021.9 \  mm}

4 0
3 years ago
In an ideal gas, specific enthalpy is a function of i. Entropy ii. Temperature iii, Pressure iv. Mass
Mice21 [21]

Answer:

Temperature

Explanation:

In an ideal gas the specific enthalpy  is exclusively a function of Temperature only this can be also written as h = h(T)  

A gas is said be ideal gas if obeys PV= nRT law

And in a ideal gas both internal energy and specific enthalpy are a function of Temperature only. Therefore the constant volume and constant pressure specific heats Cv and Cp are also function of temperature only.

5 0
3 years ago
what is the transfer function of the loaded filter? express your answer in terms of the variables r , l , rl , and s .
NISA [10]

Loaded, H_{Loaded}(s) = \frac{RR_{L} }{R+R_{L} } /(\frac{RR_{L} }{R+R_{L} }+SL) = \frac{RR_{L}/L }{R+R_{L} } /(\frac{RR_{L} /L}{R+R_{L} }+S) is the loaded filter's transfer function.

A graded filter that, by virtue of its weight and permeability, stabilises the foot of an earth dam or other construction when it is installed at the base of that structure.

Air filters with depth loaded are made to achieve precisely that. They add particles gradually to create air passageways, reducing constriction. You may save time and money by using filters that last longer thanks to them. The bigger particles are caught at the filter's beginning, while the smaller particles are caught as it gets closer. This is intended to avoid rapid surface loading, hence facilitating more airflow. This enables longer-lasting filtration as well.

On the other hand, surface loading filters catch every particle that is on its surface. No matter how big or little the particles are, it doesn't care.

Learn more about Loaded here:

brainly.com/question/20039214

#SPJ4

3 0
1 year ago
How can you organize a PowerPoint presentation so it engages the audience?
Yakvenalex [24]

Answer:

Use a story structure,

Explanation: Usually story engage the audience.

7 0
3 years ago
Given vectors A = xˆ2−yˆ +zˆ3 and B = xˆ3−zˆ2, find a vector C whose magnitude is 9 and whose direction is perpendicular to both
natka813 [3]

Answer:

Vector C = 1.334i + 8.671j + 2k or 1.334x + 8.671y + 2z

Explanation:

The concept applied to solve the question is cross product of vector, AXB since vector C is perpendicular to vector A and B and this is solved by applying the 3X3 determinant method.

A detailed step by step explanation is attached below.

7 0
3 years ago
Read 2 more answers
Other questions:
  • A device is needed to accelerate a 3000 lb vehicle into a barrier with constant velocity to test its 5 mph bumpers. The vehicle
    12·2 answers
  • You’ve experienced convection cooling if you’ve ever extended your hand out the window of a moving vehicle or into a flowing wat
    6·1 answer
  • A cylindrical specimen of this alloy 12.7 mm in diameter and 250 mm long is stressed in tension and found to elongate 7.6 mm. On
    5·1 answer
  • Sadadasdasdasdasdadaaasd1
    14·1 answer
  • What is an air mass?​
    5·2 answers
  • What are two factors that determine the thermal energy of a substance
    10·1 answer
  • How do people eat with there noses shut
    12·2 answers
  • PLEASE HELP!<br> I'm in the middle of a test and the teacher didn't go over the material!
    10·1 answer
  • All these are returnless fuel systems EXCEPT ?
    8·1 answer
  • 50.38
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!