Giter Club home page Giter Club logo

la-2022-primary-shapefiles's Introduction

Los Angeles County June 7, 2022 Primary Election geodata

This repo contains a geodatabase and geojson files to use with LA County election results from the June 7, 2022 primary.

The files are in the geojson-by-race directory.

Creating the files yourself

To create the files yourself, run the create-shapefiles.ipynb Jupyter notebook. It requires Python 3.7, pandas, geopandas, fiona, requests and xlrd. So:

pip install pandas geopandas fiona requests xlrd

Merging election results with the geodata

This repo does not contain the election results. But if you run create-shapefiles.ipynb it will download the data and create geojson files that include the election results as properties of each precinct. Those files will be saved into a new folder geojson-by-race-with-results

Where to get LA County election precinct shapefiles

The DavidYanofsky.gdb geodatabase was provided to me by the Los Angeles county. You can request your own copy through their order form. It costs $22 for them to mail a CD to you. And you'll have to mail them a check or go to Norwalk to pay.

I suggest you just use these files for free.

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.