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
Millions of years ago, the Sierra Nevada region began to be uplifted along a crack in Earth's crust. The region on the other sid
Evgen [1.6K]

Answer:  The correct answer is :  Fault block mountain with rough edges and steep cliffs

Explanation:  Snowy saws are an example of a mountain chain blocked by faults. The snowy mountains were formed because the tectonic movement forced some segments of the earth's crust up into irregular pieces and others down.

8 0
4 years ago
Select the level of education that is best demonstrated in each example.
Nastasia [14]

Answer:

masters

associate

bachelors

Explanation:

8 0
3 years ago
Read 2 more answers
Ughhh my cramps hurt sm
kozerog [31]

Answer:

Explanation:Come

tomate

5 0
3 years ago
Read 2 more answers
9. Calculate the total resistance and current in a parallel cir-
Taya2010 [7]

Answer:

  d. 2.3 ohms (5.3 amperes)

Explanation:

The calculator's 1/x key makes it convenient to calculate parallel resistance.

  Req = 1/(1/4 +1/8 +1/16) = 1/(7/16) = 16/7 ≈ 2.3 ohms

This corresponds to answer choice D.

__

<em>Additional comment</em>

This problem statement does not tell the applied voltage. The answer choices suggest that it is 12 V. If so, the current is 12/(16/7) = 21/4 = 5.25 amperes.

5 0
3 years ago
Gtjffs
grandymaker [24]

the required documents is 3000

4 0
3 years ago
Other questions:
  • A tire-pressure monitoring system warns you with a dashboard alert when one of your car tires is significantly under-inflated.
    6·1 answer
  • g (d) Usually, in the case of two finite-duration signals like in parts (a) and (b), the convolution integralmust be evaluated i
    7·1 answer
  • Rolling and Shearing are the types of a)-Bulk Deformation Process b)- Sheet Metal Process c)- Machining Process d)- Both a &amp;
    7·1 answer
  • You live on a street that runs East to West. You just had 2 inche of snow and you live on the North side of the street. You retu
    14·1 answer
  • An air conditioner using refrigerant-134a as the working fluid and operating on the ideal vapor-compression refrigeration cycle
    7·2 answers
  • An experimental arrangement for measuring the thermal conductivity of solid materials involves the use of two long rods that are
    8·1 answer
  • Visual aids are useful for all of the following reasons except
    11·1 answer
  • Overconfidence in more male drivers, particularly those under 25 years old, results in them being involved in crashes.
    14·1 answer
  • A plant has ten machines and currently operates two 8-hr shift per day, 5 days per week, 50 weeks per year. the ten machines pro
    6·1 answer
  • If 200 amperes flow from the positive terminal of a battery and operate the starter motor, how many amperes will flow back to th
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!