Python Forum
Foundations of Data Science Data 8.2x
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Foundations of Data Science Data 8.2x
#1
State Year Population Murder Rate
Alaska 1960 226,167 10.2
Alaska 1961 234,000 11.5
Alaska 1962 246,000 4.5
Alaska 1963 248,000 6.5
Alaska 1964 250,000 10.4
Alaska 1965 253,000 6.3
Alaska 1966 272,000 12.9
Alaska 1967 272,000 9.6
Alaska 1968 277,000 10.5
Alaska 1969 282,000 10.6


1. Murder rates

The murder_rates table isn't enough to demonstrate an *association* between crimes and punishments. We would like to check for an association between murder rates and the existence of capital punishment, for each pair of a state and a year.

**Question 1.1.** <br/>What additional information will we need before we can check for that association? Assign extra_info to a Python list (i.e. [#] or [#, #, ...]) containing the number(s) for all of the additional facts below that we *require* in order to check for association.

1) What year(s) the death penalty was introduced in each state (if any).

2) Day to day data about when murders occurred.

3) What year(s) the death penalty was abolished in each state (if any).

4) Rates of other crimes in each state.

extra_info =...
extra_info

I'm not too sure how to create a list containing all this information.

For example: from the table above how do I know if there was a death penalty in that state?
Reply
#2
Make an attempt, show your code, and we will help.

We will not do your homework for you
Reply
#3
Hi Larz,

I actually misunderstood the question.

They are just asking to choose between 1-4.

for example: extra_info = [1, 3]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Assignment 3 - Applied Data Science - 2.3 eyavuz21 8 4,929 Jun-06-2020, 08:59 AM
Last Post: eyavuz21
  Applied Data Science with Python - homework 2.2 (Weather plotting) eyavuz21 4 3,368 Jun-03-2020, 07:09 PM
Last Post: eyavuz21
  Intro to Python for Data Science with Datacamp Sabrusura 4 3,630 Aug-21-2018, 09:03 AM
Last Post: Sabrusura
  How to covert raw data into panel data jason413 1 2,792 May-26-2018, 08:39 PM
Last Post: gruntfutuk
  Login Module Help - Comparing data in a text file to data held in a variable KeziaKar 0 2,235 Mar-08-2018, 11:41 AM
Last Post: KeziaKar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020