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
What are the nine Historical periods?
Rufina [12.5K]

Answer:

https://quizlet.com/148993376/the-nine-distinct-periods-of-time-flash-cards/

Explanation:

you can find them all : )

7 0
3 years ago
A steady‐flow gas furnace supplies hot air at a rate of 850 cfm and conditions of 120F and 1.00 atm. The air splits into two bra
V125BC [204]

Answer:

if I am not wrong the volumetric flow rate into the finance if the year inter 868 1.00 pm

8 0
3 years ago
The difference between an initial condition and a boundary condition for conduction in a solid is:___________
leva [86]

Answer:

c. an initial condition specifies the temperature at the start of the problem and a boundary condition provides information about temperatures on the boundaries.

Explanation:

Conduction refers to the transfer of thermal energy or electric charge as a result of the movement of particles. When the conduction relates to electric charge, it is known as electrical conduction while when it relates to thermal energy, it is known as heat conduction.

In the process of heat conduction, thermal energy is usually transferred from fast moving particles to slow moving particles during the collision of these particles. Also, thermal energy is typically transferred between objects that has different degrees of temperature and materials (particles) that are directly in contact with each other but differ in their ability to accept or give up electrons.

Any material or object that allow the conduction (transfer) of electric charge or thermal energy is generally referred to as a conductor. Conductors include metal, steel, aluminum, copper, frying pan, pot, spoon etc.

Hence, the difference between an initial condition and a boundary condition for conduction in a solid is that an initial condition specifies the temperature at the start of the problem and a boundary condition provides information about temperatures on the boundaries.

7 0
2 years ago
In contouring, it is necessary to measure position and not velocity for feedback.
EastWind [94]

Answer:

(1). False, (2). True, (3). False, (4). False, (5). True.

Explanation:

The term ''contouring'' in this question does not have to do with makeup but it has to deal with the measurement of all surfaces in planes. It is a measurement in which the rough and the contours are being measured. So, let us check each questions again.

(1). In contouring, it is necessary to measure position and not velocity for feedback.

ANSWER : b =>False. IT IS NECESSARY TO MEASURE BOTH FOR FEEDBACK.

(2). In contouring during 2-axis NC machining, the two axes are moved at the same speed to achieve the desired contour.

ANSWER: a=> True.

(3). Job shop is another term for process layout.

ANSWER: b => False

JOB SHOP IS A FLEXIBLE PROCESS THAT IS BEING USED during manufacturing process and are meant for job Production. PROCESS LAYOUT is used in increasing Efficiency.

(4). Airplanes are normally produced using group technology or cellular layout.

ANSWER: b => False.

(5). In manufacturing, value-creating time is greater than takt time.

ANSWER: a => True.

8 0
3 years ago
Which of these is the coarsest grit abrasive that may be used on aluminum?
natali 33 [55]

Answer:

80grit

Explanation:

80 grit is coarsest grit that may be used on aluminum

The lowest grit sizes range from 40 to 60. From the given options 80 grit is practically available grit.

What is a sandpaper used for?

They are essentially used for surface preparation. Sandpaper is produced in a range of grit sizes and is used to remove material from surfaces, either to make them smoother (for example, in painting and wood finishing), to remove a layer of material (such as old paint), or sometimes to make the surface rougher (for example, as a preparation for gluing).

5 0
3 years ago
Read 2 more answers
Other questions:
  • A 1-lb collar is attached to a spring and slides without friction along a circular rod in a vertical plane. The spring has an un
    6·1 answer
  • Answer every question of this quiz
    7·1 answer
  • When the vessel and its contents are warmed to 100 °C, Q decomposes into its constituent elements. What is the total pressure, a
    11·1 answer
  • Which of the following describes what occurs when energy is lost in efficient transformation?
    14·1 answer
  • A football player attempts a 30‐yd field goal. If he is able to impart a velocity u of 100 ft/sec to the ball, compute the minim
    6·1 answer
  • Plot da(t) if the output voltage of the converter pole-a is vaN(t)=Vd/2+0.85 Vd/2 sin(Ï1t), where Ï1=2Ï x 60 rad/s
    12·1 answer
  • Name eight safety electrical devices including their functions and effects if not present.​
    15·1 answer
  • 3. What type of tool do you use to make angles?
    15·1 answer
  • 4.
    6·1 answer
  • PLS HELP! which statement is the best example of how society affects the useof technology? A. Farmers in hilly areas grow crops
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!