Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introductory mapping exercise #28

Open
9 of 10 tasks
josh-chamberlain opened this issue Sep 17, 2024 · 2 comments
Open
9 of 10 tasks

Introductory mapping exercise #28

josh-chamberlain opened this issue Sep 17, 2024 · 2 comments
Assignees

Comments

@josh-chamberlain
Copy link
Contributor

josh-chamberlain commented Sep 17, 2024

Context

Related to Police-Data-Accessibility-Project/data-projects#17

We have prior analysis done in this repository: mj-decriminalization/analysis/grief to action/Final_Marijuana_Visualization.ipynb

This issue is about doing some basic mapping and getting familiar with the tools in the process. We will mostly be stealing and modifying code from similar projects / chatgpt, so python knowledge is not critical.

Tasks

Research

Getting started / environment setup

  • download pycharm, an "IDE" / code editor geared toward python projects
  • install github desktop and clone this repository
  • open the above file in pycharm, and "run" it to verify that the analysis is generated as it looks in the web version linked above. note that it references a file in github with merged arrests and citations.
  • make a new branch in github called mj-mapping, so that your changes are contained to that branch
  • check off these tasks and leave a comment checking in when this is complete, or comment if you have issues along the way!

Mapping data

  • grab the new fall 2024 template file once adding fall 2024 template #29 is merged
  • in your copy of the file, delete everything after the line containing mj_data_df = pd.read_csv(url, low_memory = False)
  • see if you can modify the file using research about bokeh and these chat gpt suggestions to make literally any kind of map appear with data from the spreadsheet
    • I'm anticipating you will get stuck here, and we can figure out what's next.
    • use X and Y columns for location, and record_type for arrests vs citations
  • next steps TBD; likely will involve comparing police zones, or overlaying arrests and citations in a heatmap across pittsburgh with zone or neighborhood overlays
@mjjacobs13
Copy link
Collaborator

mjjacobs13 commented Sep 24, 2024

The file is giving me error messages in PyCharm, but the visualizations are showing.

@mjjacobs13
Copy link
Collaborator

Everything else is complete!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants