The files can be downloaded from:https://drive.google.com/file/d/1E0dm5CjtUc0IJJwL0mUujJ6pIYvkv6YX/view?usp=sharing You are to create a program in Python that performs the following using the pandas...

The files can be downloaded from:https://drive.google.com/file/d/1E0dm5CjtUc0IJJwL0mUujJ6pIYvkv6YX/view?usp=sharing

You are to create a program in Python that performs the following using the pandas packages:1. Loads the ss13hil.csv file that contains the PUMS dataset (assume it's in the current directory) and create a DataFrame object from it if you use Python.2. Create 3 tables:TABLE 1: Statistics of HINCP - Household income (past 12 months), grouped by HHT - Household/family type• Table should use the HHT types (text descriptions) as the index• Columns should be: mean, std, count, min, max• Rows should be sorted by the mean column value in descending orderTABLE 2: HHL - Household language vs. ACCESS - Access to the Internet (Frequency Table)• Table should use the HHL types (text descriptions) as the index• Columns should be the text descriptions of ACCESS values• Each table entry is the sum of WGTP column for the given HHL/ACCESS combination, divided by the sum of WGTP values in the data. Entries need to be formatted as percentages.• Any rows containing NA values in HHL, ACCESS, or WGTP columns should be excluded.TABLE 3: Quantile Analysis of HINCP - Household income (past 12 months)• Rows should correspond to different quantiles of HINCP: low (0-1/3), medium (1/3-2/3), high (2/3-1)• Columns displayed should be: min, max, mean, household_count• The household_count column contains entries with the sum of WGTP values for the corresponding range of HINCP values (low, medium, or high)3. Display the tables to the screen as shown in the sample output on the last page.
Mar 05, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here