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 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
question
Computers and Technology, 24.06.2019 18:00
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
question
Computers and Technology, 25.06.2019 00:30
Which type of cell references are locked and not automatically updated when it’s copied a)formula b)relative c)absolute d)worksheet
Answers: 1
You know the right answer?
Create a program in python 2.7 that performs the following using the matplotlib and pandas packages:...
Questions
Questions on the website: 13722360