Question: do them i python Make a using the pandas library that has two columns named City and Population with four entries, as shown in this


Make a using the pandas library that has two columns named "City" and "Population" with four entries, as shown in this table: The Population column should be entered as an int The code in your cell should be self-sufficient: it should import and define all necessary modules, types, etc. to work on its own. After creating the Dataframe, make sure you assign it to a variable and print it out to check for correctness. Calculate the average population of the four largest cities in Massachusetts, and output that value. You can use the DataFrame defined in 4.3 above and you can use the built-in methods of DataFrame to do the calculation "automatically" without writing your own for loop. Write a program in the cell below that prints out all the numbers that look like 4n1 for positive values of n that can be represented by the 32-bit floating point type defined by numpy. The first such number would be 0.25, the second 0.0625, and so forth. The code in your cell should be self-sufficient it should import and define all necessary modules, types, etc. to work on its own
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
