subject

Create a program in python 2.7 that performs the following using the matplotlib and pandas packages: loads the ss13hil. csv file that contains the pums dataset (assume it's in the current directory) and create a dataframe object from it. create a figure with 2x2 subplots. the required subplots are as follows: upper left subplot - pie chart containing the number of household records for different values of the hhl (household language) attribute. the plot should have no wedge labels, but should have a legend in the upper left corner. the pie needs to be rotated appropriately (see example figure on last page). upper right subplot - histogram of hincp (household income) with kde plot superimposed (see pg 236-238 of textbook). you should use a log scale on the x-axis with log-spaced bins (hint: use np. logspace). lower left subplot - bar chart of thousands of households for each veh (vehicles available) value (exclude nan). make sure to use the wgtp value to count how many households are represented by each household record and divide the sum by 1000. lower right subplot - scatter plot of taxp (property taxes) vs. valp (property value). make sure to convert taxp into the appropriate numeric value, using the lower bound of the interval (e. g. 2 -> $1, 16 -> $700, …). use wgtp as the size of each marker, ‘o’ as the marker type, and mrgp (first mortgage payment) as the color value. add a colorbar.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Create a program in python 2.7 that performs the following using the matplotlib and pandas packages:...
Questions
question
Mathematics, 18.05.2021 18:50
Questions on the website: 13722363