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
An eddy current separator is to separate aluminum product from an input streamshredded MSW. The feed rate to the separator is 2,
blsea [12.9K]

Answer:

<em>the % recovery of aluminum product is 80.5%</em>

<em>the % purity of the aluminum product is 54.7%</em>

<em></em>

Explanation:

feed rate to separator = 2500 kg/hr

in one hour, there will be 2500 kg/hr x 1 hr = 2500 kg of material is fed into the  machine

of this 2500 kg, the feed is known to contain 174 kg of aluminium and 2326 kg of rejects.

After the separation, 256 kg  is collected in the product stream.

of this 256 kg, 140 kg is aluminium.

% recovery of aluminium will be = mass of aluminium in material collected in the product stream ÷ mass of aluminium contained in the feed material

% recovery of aluminium = 140kg/174kg x 100% = <em>80.5%</em>

% purity of the aluminium product = mass of aluminium in final product ÷ total mass of product collected in product stream

% purity of the aluminium product = 140kg/256kg

x 100% = <em>54.7%</em>

8 0
3 years ago
Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature
Ronch [10]

Answer:

The surface temperature increases when two bodies are rubbed against each other due to friction.

Explanation:

No object has a perfectly even surface. So, when two bodies with uneven surfaces are rubbed against each other, they experience friction.

Friction is a resistance experienced by the two bodies when they are moved against each other.

The friction between the two surfaces, converts the kinetic energy of the movement to the thermal energy.

Thus, resulting in rise in the surface temperature of the two bodies.

Therefore, when two bodies are rubbed against each other, the surface temperature increases due to friction.

7 0
4 years ago
Why become an Android programmer?
Tpy6a [65]
As a free and open operating system, Android allows app developers to generate new ideas and work with a wide range of smartphones to open up hardware options, as companies supply a great variety of devices to choose from and high-end devices become more affordable.25 Jan 2017
4 0
3 years ago
(30 pts) A simply supported beam with a span L=20 ft and cross sectional dimensions: b=14 in; h=20 in; d=17.5 in. is reinforced
Nat2105 [25]

Answer:

Zx = 176In³

Explanation:

See attached image file

5 0
3 years ago
The theoretical maximum specific gravity of a mix at 5.0% binder content is 2.495. Using a binder specific gravity of 1.0, find
PSYCHO15rus [73]

Answer:

The theoretical maximum specific gravity at 6.5% binder content is 2.44.

Explanation:

Given the specific gravity at 5.0 %  binder content 2.495

Therefore

95 % mix + 5 % binder  gives S.G. = 2.495

Where the  binder is S.G. = 1, Therefore

Per 100 mass unit we have (Mx + 5)/(Vx + 5) = 2.495

(95 +5)/(Vx +5) = 2.495

2.495 × (Vx + 5) = 100

Vx =35.08 to 95

Or density of mix = Mx/Vx = 95/35.08 = 2.7081

Therefore when we have 6.5 % binder content, we get

Per 100 mass unit

93.5 Mass unit of Mx has a volume of

Mass/Density = 93.5/2.7081 = 34.526 volume units

Therefore we have

At 6.5 % binder content.

(100 mass unit)/(34.526 + 6.5) = 2.44

The theoretical maximum specific gravity at 6.5% binder content = 2.44.

3 0
3 years ago
Other questions:
  • The water requirement for Class H cement is 38% (i.e.,water (%) by weight of cement),whereas the water requirement for barite is
    7·1 answer
  • Algebraically prove identities involving the exclusive-OR operation: (a) x ⊕ 0 = x (b) x ⊕ 1 = x′ (c) x ⊕ x = 0 (d) x ⊕ x′ = 1 (
    10·1 answer
  • Ma puteti ajuta cu un argument de 2 pagini despre inlocuirea garniturii de etansare de pe pistonul etrierului de franare la un a
    10·1 answer
  • What are the use of logic gates in the field of robotics?
    10·1 answer
  • What is the process of a Diesel engine uses to convert fuel to mechanical energy
    8·1 answer
  • Which of these drum brake systems uses servo action in both directions?
    9·1 answer
  • Henry is given a task to divide a segment into six equal parts, using a triangle and a compass. How many arcs would he need to c
    10·1 answer
  • Drivers must be careful when driving close to cyclists and should keep at least ___ feet apart when passing cyclists on the road
    15·1 answer
  • If a 1500 V load is ac coupled to the output in Figure 9–60, what is the resulting output voltage (rms) when a 50 mV rms input i
    14·1 answer
  • A high compression ratio may result in;
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!