Coder Social home page Coder Social logo

jgzmlmf / python-cadoj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaeaton/python-cadoj

0.0 2.0 0.0 2.1 MB

a python project for generating simple graphs out of CA DOJ data about deaths of inmates in the last 30 years in PDF form.

Python 100.00%

python-cadoj's Introduction

Welcome to the California Department of Justice Graph Generator!  

In the interest of full disclosure:

- This program is not affiliated with the CA DOJ.  It just makes use of their publicly available data on deaths of inmates in the CA justice system, from 1980 - 2014.
- The data file included in this zip file has been altered from the original.  There were multiple duplicated columns, as well as columns containing codes that are of use only to the agencies involved.  I removed these in the name of expediting the loading process.  (It literally cut the file size in half.)  For the original, unaltered csv file, please see http://openjustice.doj.ca.gov/data.

Installation
------------

This program makes use of 3 external libraries: pandas, matplotlib, and easygui

The easiest way to run this program is to install Anaconda with Python 2.7, found at https://www.continuum.io/downloads.  This can be set to install to a local folder that can be deleted for easy removal when you're done.  This will install the correct version of Python (2.7.10), and the libraries pandas and matplotlib, as well as any dependencies they have.  You can then install easygui by either installing via pip or manually.  Use "pip install easygui" if using pip.  Please see http://sourceforge.net/projects/easygui/ to install manually.

If you choose not to use Anaconda, the necessary libraries are:

- pandas: http://pandas.pydata.org/pandas-docs/stable/install.html 
- matplotlib: http://matplotlib.org/users/installing.html
- easygui: "pip install easygui" -or- http://sourceforge.net/projects/easygui/

Once the libraries are installed, the program can be run either in IDLE or by typing "python graph.py" in the command line.  (You must be in the same folder as the graph.py file.)  A popup box will appear (though it may be hidden under other open windows).  PDFs will be saved in the same folder as graph.py.

This program was created on a Mac running OS X Yosemite (Version 10.10.5), using Anaconda, and Python 2.7.10 which came with Anaconda.  Easygui was installed via "pip install easygui".  If you have any problems, questions or concerns, please contact me at [email protected].

python-cadoj's People

Contributors

kaeaton avatar

Watchers

 avatar  avatar

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.