Skip to main content

Pandas Network Analysis - dataframes of network queries, quickly

Project description

Build Status Coverage Status

A nice slideshow showing example code is available here.

In this case, a picture is worth a thousand words. The image below shows the distance to the 2nd nearest restaurant (rendered by matplotlib) for the city of San Francisco. With only a few lines of code, you can grab a network from OpenStreetMap, take the restaurants that users of OpenStreetMap have recorded, and in about half a second of compute time you can get back a Pandas Series of node_ids and computed values of various measures of access to destinations on the street network.

Distance to Restaurants

Distance to Restaurants

Beyond simple access to destination queries, this library also implements more general aggregations along the street network (or any network). For a given region, this produces hundreds of thousands of overlapping buffer queries (still performed in less than a second) that can be used to characterize the local neighborhood around each street intersection. The result can then be mapped, or assigned to parcel and building records, or used in statistical models as we commonly do with UrbanSim. This is in stark contrast to the arbitrary non-overlapping geographies ubiquitous in GIS. Although there are advantages to the GIS approach, we think network queries are a more accurate representation of how people interact with their environment.

We look forward to creative uses of a general library like this - please let us know when you think you have a great use case with the hashtag #synthicity.

Docs

Documentation for Pandana is now available.

Thorough API documentation for Pandana is also available.

Acknowledgments

None of this would be possible without the help of Dennis Luxen (now at MapBox) and his OSRM (https://github.com/DennisOSRM/Project-OSRM). Thank you Dennis!

Nearest neighbor queries are performed with the fastest k-d tree around, i.e. ANN (http://www.cs.umd.edu/~mount/ANN/).

Academic Literature

I’m currently working on getting a complete description of the methodology published in an academic journal. Please cite this paper when referring to the methodology implemented by this library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

pandana-0.1.zip (138.0 kB view details)

Uploaded Source

pandana-0.1.tar.gz (93.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pandana-0.1-cp27-none-win_amd64.whl (129.3 kB view details)

Uploaded CPython 2.7Windows x86-64

pandana-0.1-cp27-none-win32.whl (92.5 kB view details)

Uploaded CPython 2.7Windows x86

pandana-0.1-cp27-none-macosx_10_5_x86_64.whl (119.6 kB view details)

Uploaded CPython 2.7macOS 10.5+ x86-64

File details

Details for the file pandana-0.1.zip.

File metadata

  • Download URL: pandana-0.1.zip
  • Upload date:
  • Size: 138.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pandana-0.1.zip
Algorithm Hash digest
SHA256 7279b5d2fbf772f257ea2ec166c9ab266337674779e74e6d112e4adf0cf5aec4
MD5 d9d839fd8deadc816ed61382f7cdb690
BLAKE2b-256 da675d642bbf889fbffec0d9b03c0cf67fc927cd30b27e3e94f436b4a7637c5c

See more details on using hashes here.

File details

Details for the file pandana-0.1.tar.gz.

File metadata

  • Download URL: pandana-0.1.tar.gz
  • Upload date:
  • Size: 93.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pandana-0.1.tar.gz
Algorithm Hash digest
SHA256 57538c6cbb94aa853058cc9ca80bc1e784698c8b1ae42fb861b18b411dfcde0f
MD5 94e07814b20a8010ff83e3ea824d3148
BLAKE2b-256 947d9090fe83d3b4ee3731287925bfed64f6476255c8c67dd83b2bc50f8efe98

See more details on using hashes here.

File details

Details for the file pandana-0.1-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for pandana-0.1-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 c8b1852ee3be97d5ebee8f02dacdb9f1732793450738cc68ee152639728379b0
MD5 06e038b9e717d705842d426ba61c93d0
BLAKE2b-256 bc077feb0f6bec7678371250405c53cd472ba8e1e59b243efdcf0af9b44e3907

See more details on using hashes here.

File details

Details for the file pandana-0.1-cp27-none-win32.whl.

File metadata

  • Download URL: pandana-0.1-cp27-none-win32.whl
  • Upload date:
  • Size: 92.5 kB
  • Tags: CPython 2.7, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pandana-0.1-cp27-none-win32.whl
Algorithm Hash digest
SHA256 4667061c35325e9ba2c2e46328942d85225397f0d5d3d27bc7abaf502a6cc66d
MD5 7b4394eb64ef4ec29ee371ce474d134d
BLAKE2b-256 8169f7a93b54ba5f3190abb255aeffcf69b2831bfe32e2aeac3a2e31f1692d5b

See more details on using hashes here.

File details

Details for the file pandana-0.1-cp27-none-macosx_10_5_x86_64.whl.

File metadata

File hashes

Hashes for pandana-0.1-cp27-none-macosx_10_5_x86_64.whl
Algorithm Hash digest
SHA256 0b26c11ad74a797285022737529a9b13c5127543e56daaa716346b96fb979ed9
MD5 4eb1571c5f1dec25d7df7a226bc48843
BLAKE2b-256 bf107c375e1902a90410c883f2b46793122e29e9bdd664871f14138e5bd51e84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page