Question: Add a new record for: FL 0 2 9 0 2 , Tampa, FL , 3 6 4 3 8 3 , 2 7 ,

Add a new record for:
FL02902, Tampa, FL,364383,27,2730,733
2. Create a new DataFrame named df2df2 that includes the homicides per capita for each location
This is calculated as homicides / population *100000
You can use a calculator to generate these numbers and hard-code them into a DataFrame
3. Combine that new DataFrame with the prior existing DataFrame
This could be done in multiple ways. Take your pick.
4. Print the entire combined DataFrame in Pandas format (i.e. not using print())
NOTE: an easier way to accomplish the same task would be to create a new, calculated column in the
existing DataFrame. But that is not what is being tested here. So perform the steps as described above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!