Question

Using python: In this problem you will use Pandas DataFrames. You will want to read about...

Using python:

In this problem you will use Pandas DataFrames. You will want to read about the value_counts and describe methods. All questions refer to the data set adult_data_cleaned.csv. Note that some of the fields may contain leading spaces which could be difficult to spot. Store your answers in appropriate variables. Use only pandas functionality for this problem.

a) What percentage of those with an education level of a bachelors degree earn over 50K?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

import pandas as pd #importing the padas library

df=pd.read_csv("adult_cleaned.csv") #store the data into variable named " df "

df.value_counts() #to view value counts

df.describe() #it wil show the min, max. quartiled, statistical inference

Percentage calculation is as follows:

In gerneral

df[percent] = (df['column name"]/df["column name"].sum()*100

Add a comment
Know the answer?
Add Answer to:
Using python: In this problem you will use Pandas DataFrames. You will want to read about...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Python Programming language. Complete the problems below using Jupyter Notebook. Problem Needs to be solved from...

    Python Programming language. Complete the problems below using Jupyter Notebook. Problem Needs to be solved from number #1 link provided for the Data: -----> https://docs.google.com/spreadsheets/d/1TqhyxFKQlOHAyXpQBL-4C96kgZFBoMwUgE8-b33CqPQ/edit?usp=sharing PROBLEMS # 0.0 Import the libraries (pandas, matplotlib, and seaborn) Include the code line: %matplotlib inline #Include the code line: plt.style.use(“ggplot”) #Load the data using pandas #Inspect the data using head(), dtypes ANSWERD: import pandas as pd import matplotlib.pyplot as plt import seaborn as sns plt.style.use('ggplot') %matplotlib inline df = pd.read_csv() print(df.head()) print(df.dtypes) # 1...

  • Python 3 Problem: I hope you can help with this please answer the problem using python...

    Python 3 Problem: I hope you can help with this please answer the problem using python 3. Thanks! Code the program below . The program must contain and use a main function that is called inside of: If __name__ == “__main__”: Create the abstract base class Vehicle with the following attributes: Variables Methods Manufacturer Model Wheels TypeOfVehicle Seats printDetails() - ABC checkInfo(**kwargs) The methods with ABC next to them should be abstracted and overloaded in the child class Create three...

  • Using python Make pairwise scatterplots among four variables: Rating,Reviews,Size, and Price. Any findings from the plots? Use the following code to read the data into Python: import pandas as p...

    Using python Make pairwise scatterplots among four variables: Rating,Reviews,Size, and Price. Any findings from the plots? Use the following code to read the data into Python: import pandas as pd apps = pd.read_csv("https://raw.githubusercontent.com/Sudz24/PlayStore/master/googleplaystore.csv") Outl 33]: LastCur Updated Ver Content Type Price Rating App Category Genres Rating Reviews Size Installs T Editor & Candy Camera & Grid& Everyone Art & Design January 7, 2018 ART AND DESIGN 4.1 159 19M 10,000+Free E 1.0. 0 Art & January 15, 2018 A ANO...

  • Python Assignment In this assignment, you will use Pandas library to perform analysis on the dataset stored in the following csv file: breast-cancer-wisconsin.csv. Please write script(s) to do the fol...

    Python Assignment In this assignment, you will use Pandas library to perform analysis on the dataset stored in the following csv file: breast-cancer-wisconsin.csv. Please write script(s) to do the following: 1. Read the csv file and covert the dataset into a DataFrame object. 2. Persist the dataset into a SQL table and a JASON file. • Write the content of the DataFrame object into an SQLite database table. This will convert the dataset into a SQL table format. You can...

  • For this problem, you should: describe the algorithm using a flowchart and then use Python to...

    For this problem, you should: describe the algorithm using a flowchart and then use Python to implement the algorithm. You must include a.) a picture of your flowchart, b.) a screen shot of your program, and c.) a screen shot of your output. Programming Task: An Arctic helicopter service cannot carry more than 2 passengers and more than 300 pounds in extra weight. Define variables to hold the weight of each of the two passengers. If the combined weight exceeds...

  • A)) (Ransom Note Problem) in python A kidnapper kidnaps you and writes a ransom note. He...

    A)) (Ransom Note Problem) in python A kidnapper kidnaps you and writes a ransom note. He does not write it by hand to avoid having his hand writing being recognized, so he uses a magazine to create a ransom note. We need to find out, given the ransom string and magazine string, is it possible to create a given ransom note. The kidnapper can use individual characters of words. Here is how your program should work to simulate the ransom...

  • Any little bit of information will be helpful. Thank you. Problem Statement You are to develop a program to read Mo...

    Any little bit of information will be helpful. Thank you. Problem Statement You are to develop a program to read MotoGP rider information from an input file. You will need a MotoGpRider class whose instances will be used to store the statistics for a MotoGP motorcycle racer. The Rider class will have attributes for last name, first name, racing number, nation, motorcycle make, world championship points, world championship position, and an array that stores the number of top finishes (number...

  • Please show all work and answer all parts using python, thanks! Instructions You will need to...

    Please show all work and answer all parts using python, thanks! Instructions You will need to create four files: • Shape2D.py - file containing a class definition containing properties all Shapes could possibly have. • Circle.py - file containing a class definition of a Circle that inherits from the Shape2D class. Square.py - file containing a class definition of a Square that inherits from the Shape2D class. • testFile.py - file containing pytest functions testing the Shape2D, Circle, and Square...

  • Using Python. You will create two classes and then use the provided test program to make sure your program works This m...

    Using Python. You will create two classes and then use the provided test program to make sure your program works This means that your class and methods must match the names used in the test program You should break your class implementation into multiple files. You should have a car.py that defines the car class and a list.py that defines a link class and the linked list class. When all is working, you should zip up your complete project and...

  • Python 3.7 please help please use central limit theory In this problem you will verify the...

    Python 3.7 please help please use central limit theory In this problem you will verify the Central Limit Theorem (CLT) which states that averages, from repeated random samples of any distribution, follow a normal distribution 1. (5 points) Draw a random sample of 5,000 random numbers from a uniform distribution X ~U (20,80] and store them into a vector called xy and plot a histogram of these 5,000 numbers 2. (5 points) Draw a random sample of 5,000 random numbers...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT