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
The Danish scientist Niels Bohr proposed a model of the atom that is not totally accurate today but still contains components th
blagie [28]

Answer:

Option B

Planetary

Explanation:

In 1913, Niels Bohr proposed a model to explain the stability of orbits around the nucleus. Niels believed that light is emitted by an electron when the electron's energy changes. Bohr Atomic Model is sometimes called planetary model because it resembles a mini-solar system.

7 0
3 years ago
A DOHC V-6 has how many camshafts?
viktelen [127]

Answer:

two camshafts

Explanation:

4 0
3 years ago
An alloy is evaluated for potential creep deformation in a short-term laboratory experiment. The creep rate is found to be 1% pe
LenaWriter [7]

Answer:

a) Q = 251.758 kJ/mol

b) creep rate is    = 1.751 \times 10^{-5} \% per hr

Explanation:

we know Arrhenius expression is given as

\dot \epsilon =Ce^{\frac{-Q}{RT}

where

Q is activation energy

C is pre- exponential constant

At 700 degree C creep rate is\dot \epsilon = 5.5\times 10^{-2}% per hr

At 800 degree C  creep rate is\dot \epsilon = 1% per hr

activation energy for creep is \frac{\epsilon_{800}}{\epsilon_{700}} = = \frac{C\times e^{\frac{-Q}{R(800+273)}}}{C\times e^{\frac{-Q}{R(700+273)}}}

\frac{1\%}{5.5 \times 10^{-2}\%} = e^{[\frac{-Q}{R(800+273)}] -[\frac{-Q}{R(800+273)}]}

\frac{0.01}{5.5\times 10^{-4}} = ln [e^{\frac{Q}{8.314}[\frac{1}{1073} - \frac{1}{973}]}]

solving for Q we get

Q = 251.758 kJ/mol

b) creep rate at 500 degree C

we know

C = \epsilon e^{\frac{Q}{RT}}

    =- 1\% e{\frac{251758}{8.314(500+273}} = 1.804 \times 10^{12} \% per hr

\epsilon_{500} = C e^{\frac{Q}{RT}}

                         = 1.804 \times 10^{12}  e{\frac{251758}{8.314(500+273}}

                         = 1.751 \times 10^{-5} \% per hr

4 0
3 years ago
Products that are in the process of being manufactured but are not yet complete are called:
vazorg [7]

Answer:

Those products are generally called Work in Process WIP

Explanation:

Work in process (WIP), or work in progress (WIP), goods in process, or in-process inventory in a manufacturing industry/company refer to the company's partially finished goods waiting for completion and eventual sale or the value of these items.

These items are either just being produced or require further processing (like purification, separation, packaging or handling) in a queue or a buffer storage.

6 0
3 years ago
To assist in completing this question, you may reference the Animated Technique Video - MALDI-TOF Mass Spectroscopy. Complete th
a_sh-v [17]

Complete Question

The complete question is shown on the first uploaded image.

Answer:

The answer is shown on the second uploaded image

Explanation:

The explanation is also shown on the second uploaded image

3 0
3 years ago
Other questions:
  • A(n)______ is a device used to ensure positive position of a valve or damper actuator A. calibrator B. positioner C. actuator D.
    6·1 answer
  • The ventilating fan of the bathroom of a building has a volume flow rate of 32 L/s and runs continuously. If the density of air
    7·1 answer
  • "12 cents per kilowatt-hour (kwh), a 114 MPGe (combined) Nissan Leaf costs 90 cents per 25 miles,"
    10·1 answer
  • 7. What is the voltage across a 100 ohm circuit element that draws a current of 1 A?
    11·1 answer
  • George is replacing a burned out resistor in a circuit board. The board has a 10, a 20, and a 40 on resistor, all in parallel. W
    5·1 answer
  • What is the chord length of an airplane called?
    14·1 answer
  • Your friend has two substances A and B which are compressed liquid and superheated vapor respectively. Both are in rigid vessels
    15·1 answer
  • ____________ is the organization that oversees environmental compliance.
    14·1 answer
  • What parts do all circuits have in common?
    9·2 answers
  • thanh thẳng AD có kích thước và chịu lực như hình.biết P1 = 10kn, p2=5kn,M=15kn*m,a=2m.Hãy xách định phản lực liên kết tại A,b
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!