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

Add files/utilities for Nationwide Enforcement Disparities notebook (PInTxEDGI) #34

Merged
merged 3 commits into from
Dec 9, 2021

Conversation

oliviachang29
Copy link
Contributor

The Nationwide Enforcement Disparities Notebook utilizes the state choropleth mapping function and state postal code to fips code conversions contained in this pull request.

@ericnost ericnost self-requested a review December 8, 2021 22:40
@@ -0,0 +1,58 @@
{
"AL": "1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do wonder if there will be some cases where we need e.g. "01" instead of "1" but I know that pandas by default reads in the CSV numbers as "1" instead of "01", so this is what we need for a join.

@@ -42,6 +43,10 @@
plt.rc('font', **font)
plt.rc('legend', fancybox = True, framealpha=1, shadow=True, borderpad=1)

# Import state geographical data
states = geopandas.read_file("https://raw.githubusercontent.com/edgi-govdata-archiving/ECHO-Geo/main/cb_2018_us_state_500k.json")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can actually pull this from the Stony Brook University server, instead of Github, using other utility functions in development, but for now this is great!!!

Copy link
Member

@ericnost ericnost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@ericnost
Copy link
Member

ericnost commented Dec 9, 2021

@ericnost ericnost merged commit b747835 into edgi-govdata-archiving:main Dec 9, 2021
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

Successfully merging this pull request may close these issues.

2 participants