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]
2 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]2 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
A strain gage is mounted at an angle of 30° with respect to the longitudinal axis of the cylindrical pressure. The pressure vess
GuDViN [60]

Answer:

1790 μrad.

Explanation:

Young's modulus, E is given as 10000 ksi,

μ is given as 0.33,

Inside diameter, d = 54 in,

Thickness, t = 1 in,

Pressure, p = 794 psi = 0.794 ksi

To determine shear strain, longitudinal strain and circumferential strain will be evaluated,

Longitudinal strain, eL = (pd/4tE)(1 - 2μ)

eL = (0.794 x 54)(1 - 0.66)/(4 x 1 x 10000)

eL = 3.64 x 10-⁴ radians

Circumferential strain , eH = (pd/4tE)(2-μ)

eH = (0.794 x 54)(2 - 0.33)/(4 x 1 x 10000)

eH = 1.79 x 10-³ radians

The maximum shear strain is 1790 μrad.

4 0
3 years ago
Which branch of engineering most closely relates to mechanical engineering?
Rus_ich [418]

Answer:

C

Explanation:

I COULD be wrong, i'm not sure but im confident its c

4 0
3 years ago
What are the dimensions of the base of the pyramid?
Cloud [144]

Answer:

b

Explanation:

bcus it is

7 0
2 years ago
Which of the following ranges depicts the 2% tolerance range to the full 9 digits provided?
Lyrx [107]

Answer:

the only one that meets the requirements is option C .

Explanation:

The tolerance of a quantity is the maximum limit of variation allowed for that quantity.

To find it we must have the value of the magnitude, its closest value is the average value, this value can be given or if it is not known it is calculated with the formula

         x_average = ∑ x_{i} / n

The tolerance or error is the current value over the mean value per 100

         Δx₁ = x₁ / x_average

         tolerance = | 100 -Δx₁  100 |

bars indicate absolute value

let's look for these values ​​for each case

a)

    x_average = (2.1700000+ 2.258571429) / 2

    x_average = 2.2142857145

fluctuation for x₁

        Δx₁ = 2.17000 / 2.2142857145

        Tolerance = 100 - 97.999999991

        Tolerance = 2.000000001%

fluctuation x₂

        Δx₂ = 2.258571429 / 2.2142857145

        Δx2 = 1.02

        tolerance = 100 - 102.000000009

        tolerance 2.000000001%

b)

    x_average = (2.2 + 2.29) / 2

    x_average = 2,245

fluctuation x₁

         Δx₁ = 2.2 / 2.245

         Δx₁ = 0.9799554

         tolerance = 100 - 97,999

         Tolerance = 2.00446%

fluctuation x₂

          Δx₂ = 2.29 / 2.245

          Δx₂ = 1.0200445

          Tolerance = 2.00445%

c)

   x_average = (2.211445 +2.3) / 2

   x_average = 2.2557225

       Δx₁ = 2.211445 / 2.2557225 = 0.9803710

       tolerance = 100 - 98.0371

       tolerance = 1.96%

       Δx₂ = 2.3 / 2.2557225 = 1.024624

       tolerance = 100 -101.962896

       tolerance = 1.96%

d)

   x_average = (2.20144927 + 2.29130435) / 2

   x_average = 2.24637681

       Δx₁ = 2.20144927 / 2.24637681 = 0.98000043

       tolerance = 100 - 98.000043

       tolerance = 2.000002%

       Δx₂ = 2.29130435 / 2.24637681 = 1.0200000017

       tolerance = 2.0000002%

e)

   x_average = (2 +2,3) / 2

   x_average = 2.15

   Δx₁ = 2 / 2.15 = 0.93023

   tolerance = 100 -93.023

   tolerance = 6.98%

   Δx₂ = 2.3 / 2.15 = 1.0698

   tolerance = 6.97%

Let's analyze these results, the result E is clearly not in the requested tolerance range, the other values ​​may be within the desired tolerance range depending on the required precision, for the high precision of this exercise the only one that meets the requirements is option C .

4 0
3 years ago
Two engineers are to solve an actual heat transfer problem in a manufacturing facility. Engineer A makes the necessary simplifyi
deff fn [24]

Answer:

Engineer A results will be more accurate

Explanation:

Analytical method is better than numerical method. Engineer A has used analytical method and therefore his results will be more accurate because he used simplified method. Engineer B has used software to solve the problem related to heat transfer his results will be approximate.

5 0
2 years ago
Other questions:
  • A fluid flows steadily through a pipe with a uniform cross sectional area. The density of the fluid decreases to half its initia
    6·1 answer
  • Which is the correct order for handwashing
    11·2 answers
  • The value of the critical Reynolds number for the flow over a flat plate is 5 x10^5. The significance of the value is:
    13·1 answer
  • You are preparing to work with Chemical A. You open the appropriate storage cabinet, and notice Chemical B, as well as Chemical
    9·1 answer
  • (a) Sabbir usually (sit)______ in the front bench.
    13·1 answer
  • An Otto cycle with air as the working fluid has a compression ratio of 8.2. Under cold air standard conditions, what is the ther
    14·1 answer
  • Joinn my zo om lets play some blookets<br> 98867 708157<br> 9dPQPW
    14·1 answer
  • The formation of faults in Earth's crust is an effect. What causes faults to form in the crust? Global Positioning System sensor
    9·1 answer
  • Can someone please help me?
    11·2 answers
  • Engineers designed a motorcycle helmet from a long-lasting and safe material that protects the wearer from accidents and excessi
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!