Giter Site home page Giter Site logo

us-state-neighbors's Introduction

About

Several .csv files working with US state data. Lower 48 states only. Primarily to create a database showing how many states are between any two states

Contents:

Borders.csv

Each of the states, all the states that state directly borders, and the number of directly bordering states.

Neighbors.csv

A slightly different format of the borders.csv file. 1st column is a state and 2nd column is a directly bordering state.

Paths.csv

Each state and the shortest path to every other state. I only included one path, several states Column info:

Column Name Description
STATE_1 Starting state
STATE_1_ABBR Postal abbreviation
STATE_2 Ending state
STATE_2_ABBR Postal abbreviation
PATH One possible path, usually the shortest, between any two states. Using the postal codes in order, including starting and ending states
INVERSE_PATH Same as path, but in opposite direction
DISTANCE Number of states from starting state to ending state, ending state inclusive
All_paths.csv

Same as paths, but a row for each state to every other state

Main.py

Some scripts for trying to programatically create the paths.csv file. Conclusion: too complicated... I made paths.csv by hand mostly. More to come here maybe...

Linkedlistapi.py

For making linked lists, trying to create the paths

Words.py

Some testing functions

Assumptions:

  • Utah and New Mexico don't border
  • Arizona and Colorado don't border
  • Delaware and New Jersey border
  • Michigan and Illinois don't border
  • Michigan and Minnesota don't border

us-state-neighbors's People

Contributors

rrosenlof avatar

Watchers

 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.