Giter Site home page Giter Site logo

uscis-data's Introduction

USCIS-data

This repository collects together data on US citizen naturalizations by field office from the USCIS Immigrant and Citizenship Data portal. Note that there are only 2 fiscal quarters from 2020, making it look like there's a downward trend.

alt text

Made using various tools from the Anaconda stack.

Files

USCIS scrape and concat.ipynb: scrapes quarterly reports on naturalizations by field office and puts them together. Puts the results into a CSV called first_pass.csv (not committed to the repo).

concat_excel_quarters.ipynb: opens an xlsx file with the remaining quarters of data, which weren't available as CSV and so had to be pasted into an excel file. Saves everything to master_df.csv.

sum.ipynb: sums the quarterly data into (fiscal) yearly data, putting the data into three CSVs (in order to exclude non-US and non-US state data) in the data folder.

uscis-data's People

Contributors

dovinmu avatar

Stargazers

Guru D prasaad avatar Noah Christiansen avatar

Watchers

 avatar Eileen avatar

uscis-data's Issues

Field Offices by zip code

Heya Rowan -

I'm building out a sheet on margins of victory for various elections in google spreadsheets (see "2016 Margins") when I noticed that a few states were not represented in the raw data, including ND, SD, Wyoming, Delaware, Wisconsin, and Mississippi.

When I tried to figure out if this was an issue with our data on the USCIS site - see North Dakota, I found that ND is served by the Minneapolis field office AND that several Wisconsin counties are ALSO served by the Minneapolis field office (by zip code.)

This means that we can actually get more granular data on naturalizations by county, which I did not believe before was possible.

The data is obviously still limited, bc it doesn't tell us how many people are naturalized by county, just what it serves... so I'm not sure how ultimately useful it would be to pull this, BUT wanted to ask how hard/long you think it would take?

Column for states, and separation of int'l

Thx, almost there! Just two things:

  1. Could we add column for states (and state totals) and also organize by states-->cities in states
  2. could we move all int'l to bottom (and include in states' category?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.