olivia_dataset.fetching.police_shooting package

Submodules

olivia_dataset.fetching.police_shooting.utilities module

olivia_dataset.fetching.police_shooting.utilities.fetch_most_uptodate_police_shooting_data() pandas.core.frame.DataFrame[source]

Retrieving the police shooting data and adding the county column. If ran using 1-thread, it takes ~1 hour to complete.

The dataframe which includes county column.

olivia_dataset.fetching.police_shooting.utilities.get_county(x) str[source]

county adding

olivia_dataset.fetching.police_shooting.utilities.logger = <Logger olivia_dataset.fetching.police_shooting.utilities (INFO)>

from olivia_dataset.fetching.police_shooting.utilities import get_county, fetch_most_uptodate_police_shooting_data df = fetch_most_uptodate_police_shooting_data()

olivia_dataset.fetching.police_shooting.utilities.retrieve_police_shooting_data() None[source]

Retrieving the county-included police shooting data.

__Remark__: There might be location-based incompatibiltiies given that the county value does come from the coordinates. If incompatible, one option is to use the county’s state instead of the recorded one. A decision about this needs ot be made.

Module contents