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:
FL Tampa, FL
Create a new DataFrame named dfdf that includes the homicides per capita for each location
This is calculated as homicides population
You can use a calculator to generate these numbers and hardcode them into a DataFrame
Combine that new DataFrame with the prior existing DataFrame
This could be done in multiple ways. Take your pick.
Print the entire combined DataFrame in Pandas format ie 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
