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
Alex Ar [27]
3 years ago
6

python Create a new qualitative variable, called Elite, by binning the Top10perc variable. We are going to divide universities i

nto two groups based on whether or not the proportion of students coming from the top 10% of their high school classes exceeds 50.
Computers and Technology
1 answer:
Studentka2010 [4]3 years ago
7 0

Answer:

import pandas as pd

# URL for university excel sheet( CSV format)

data_url = '' "

# Load the data from University URL

university = pd.read_csv(data_url)

# filter the data to contain universities from where more than 50 students out of the top 10% of their high school classes came

university_1 = university[universty.number>50 ]

n= len(university_1)

n1= (10 *n)/100

university_1.nlargest(n1, 'number')

print(university_1)

Explanation:

We are using here Pandas. And it is meant for reading from various data sources like Excel, Acess, SQL Server, etc. And first, we filter University with student number more than or equal to 50. Finally, with the nlargest, we find the top 10% of the list. And for running the above program we only need to add the URL of the university.csv. Nothing else is required. You can have the local file address as well if the CSV is on your computer.

You might be interested in
What are the correct answers to the following questions?
Lena [83]

Answer:

1. analog sound

2. digital sound

3. pixels

4.  local area network

5.bus

6. slots

Explanation:

4 0
2 years ago
The classification of clouds is based on their _____.
goblinko [34]
Clouds might be ordered by shape and by height. Luke Howard, a British drug specialist was the first to portray cloud shapes utilizing Latin terms, for example, cirrus, cumulus or stratus. The division of mists into ten fundamental cloud structures or cloud genera depends on his productions.
5 0
3 years ago
Read 2 more answers
Consider a pipelined than can issue up to one instruction per cycle, but fewer may be issued because of pipeline hazards, multi-
a_sh-v [17]

Answer:

Achieved Instruction per cycle rate is 4.11\times 10^{15}

Solution:

As per the question:

Execution time, t = 1.4 s

No. of instructions being executed, n = 1.8 billion =

Clock speed of CPU, f = 3.2 GHz = 3.2\times 10^{9} Hz

Now, to calculate the actual issue rate achieved:

CPI (Cycle per Instruction) = \frac{t}{n\times f}

CPI = \frac{1.4}{1.8\times 10^{6}\times 3.2\times 10^{9}}

Instruction per cycle is given as the reciprocal of CPI:

Instruction per cycle = \frac{1.8\times 10^{6}\times 3.2\times 10^{9}}{1.4} = 4.11\times 10^{15}

6 0
3 years ago
What do you think is the meaning of the saying "Sticks and stones may break my bones, but words can never hurt me"? Do think tha
Alchen [17]

Answer:

Thing will come at you but you need to let them pass and keep going.

Explanation:

I think that saying is true.

5 0
3 years ago
The key do you use to copy and paste?
Snowcat [4.5K]

Answer:

Copy crl c PASTE is ctrl v

3 0
2 years ago
Read 2 more answers
Other questions:
  • What is computing networking​
    5·1 answer
  • List 5 items you should keep in mind when developing an app:
    7·1 answer
  • When assembling a desktop computer you should always install the drives before the motherboard?
    9·1 answer
  • Consider the following code segment. for (int a = 0; a < 10; a++) { for (int b = 10; b > a; b--) { System.out.print("#");
    6·1 answer
  • Which camera mode gives the photographer the greatest amount of control?
    7·2 answers
  • What does a spam e-mail normally promise you?
    9·1 answer
  • 13. By adding built-in writable memory to its cartridge, Nintendo’s _________________ was the first console game that gamers cou
    9·1 answer
  • After turning on your computer ,it prompts you to type a password to continue the boot process. However ,you forgot the password
    10·1 answer
  • Write a query to display the department name, location name, number of employees, and the average salary for all employees in th
    12·1 answer
  • Help me i'll brainiest if its right
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!