2024 Pittsburgh Arrest Data#56
Open
BBarr-PDAP wants to merge 3 commits into
Open
Conversation
…issues/47 Here is a rough draft for the arrest data analysis. There are four graphs so far: line graph on arrest trends over time, arrest rate by zone, arrest rate for race by year, and arrest rate for race by zone.
…issues/48 This file has a line graph of arrests over time (2017-2023), total arrests by zone, arrests by offense type by zone, and a pie chart of portion of arrests by offense type. There is an outstanding graph to create a line graph with each record type over time (if needed).
josh-chamberlain
requested changes
Jul 8, 2025
josh-chamberlain
left a comment
Contributor
There was a problem hiding this comment.
Thanks, Brian!
We just need to change the file references—they all contain stuff like this:
arrest_df = pd.read_csv(r"C:\Users\barrb\Downloads\e03a89dd-134a-4ee8-a2bd-62c40aeebc6f (1).csv")
We need them to reference the files in the repo—it should look like pd.read_csv('file.csv') where file.csv is in the same folder as the notebook, and replaced with the actual file name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An analysis of arrest data in Pittsburgh. File contains a line graph from 2017 to 2023, bar graph of total arrests in each zone, stacked bar graph of types of arrests in each zone, and a pie chart of the percentage of types of arrests.