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
Design and implement an application that reads a string from the user then determines and prints how many of eachlowercase vowel
frez [133]
Design and implement an application that reads a string from the user, then determines and prints how many of each lowercase vowel (a, e, i, o, and u) appear in the entire string . Have a separate counter for each vowel. Also count and print the number of nonvowel characters .

SPECIFICATION OF PROMPTS, LABELS AND OUTPUT : Your code should use the prompt "enter string : ". After the input is read, there are six lines of output , each starting with a different label: "a: ", "e: ", "i: ", "o: ", "u: ", "other: " in that order. After each label is the required count.

For example: if "aardvark heebie jeebies" were read in,
4 0
3 years ago
What is the main difference between a literacy society and a digital Society
EleoNora [17]
The accurate answer is

The difference is a Literacy Society is a program for encouraging people to read.
A Digital Society is a program that as to do with technology at work,school, or at home.

Glad to help :) 
7 0
4 years ago
Fill in the blanks using A to J below.
Gre4nikov [31]

Answer:

A.software written to meet specific needs of company

B.Related specialized programs combined in a unified package

4 0
3 years ago
Answer im timed i'll mark brainliest
NNADVOKAT [17]

Answer:

The answer is shapes.

Explanation:

5 0
3 years ago
Write a statement to declare and initialize an array of int named denominations that contains exactly six elements. Your declara
lawyer [7]

Answer:

// here is statement in C++ to declare and initialize an array.

int denominations[]={1, 5, 10, 25, 50, 100};

Explanation:

In C++, an array can be declare and initialize in a single statement.Syntax to declare and initialize an array in C++ is type <type> <name>[]={val1,vale2...valn}. Here first literal is type of array and second is name of the array.And in the {} braces value of the array.In the above statement type is integer and name of the array is "denominations" and the values are 1,5,10,25,50,100.

//here is implementation in C++.

// include headers

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// declare and initialize array

int denominations[]={1, 5, 10, 25, 50, 100};

return 0;

}

7 0
4 years ago
Other questions:
  • Which method of encryption is based on physics principles?
    5·1 answer
  • Assume the existence of a Building class with a constructor that accepts two parameters:_________ a reference to an Address obje
    5·1 answer
  • Which of the following payment types require you to pay upfront? AMoney orders &amp; credit cards BMoney orders &amp; pre-paid c
    9·1 answer
  • Which tab allows you to modify the width of a page margins in Microsoft word?
    7·2 answers
  • If a suspect is not read his or her Miranda rights, then nothing the suspect says can be used at trial, even if the suspect volu
    11·1 answer
  • Describe the five steps of the process of assessing personal strengths and weaknesses
    15·1 answer
  • I have a question involving do and for loops while using arrays.
    8·1 answer
  • Which type of software is created on user dimension​
    5·1 answer
  • What is the difference between a threat and an attack?
    7·1 answer
  • Question 3 of 25 In computer science, what is a developer? A. A person who organizes all the details of a project B. An individu
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!