Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, banna01man
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, ghari112345
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
image
Computers and Technology, 24.06.2019 17:40, HealTheWorld
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately
Answers: 2
image
Computers and Technology, 24.06.2019 22:30, gabi83
To add additional commands to the quick access toolbar, a user can navigate to the view. backstage status bar design file
Answers: 2
Do you know the correct answer?
Create a program in python 2.7 that performs the following using the matplotlib and pandas packages:...

Questions in other subjects:

Konu
Mathematics, 08.12.2020 02:30
Konu
Mathematics, 08.12.2020 02:30
Konu
Business, 08.12.2020 02:30