A Spatial Accessibility Calculation package
Project description
SpatialAccessibility Lib
This is a library for spatial accessibility analysis in Python.
Installation
To install the library, you can use pip:
pip install -i https://test.pypi.org/simple/ SpatialAccessibility==0.0.1
or if you ara using Colab:
!pip install hatchling
!pip install git+https://github.com/wsqstar/SpatialAccessibility.git
Usage
To use the library, you need to have a od matrix of the study area. You can then use the following code to calculate the spatial accessibility:
from SpatialAccessibility import calculate_accessibility
# @title 示例调用
import pandas as pd
Data_df = pd.read_csv("datasets/Data.csv")
Data_df.rename(columns={'O_Popu': 'O_Demand'}, inplace=True)
Current_Accessibility, summary_accessibility = calculate_accessibility(Data_df,print_out=False)
# Load the dataframe
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for spatialaccessibility-0.0.1.tar.gz
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c6af74fa1e87311a0dad25001bfe5e701882a0f9a646a9d804f569721e311e31 |
|
| MD5 | 70ed1ea2631fe1c3cbe0566c3ba31f39 |
|
| BLAKE2b-256 | 81120ec5b93ef6aa4c16fce00f9f31c9b9a59223d75a014fa3bd405049a44fcd |
Close
Hashes for spatialaccessibility-0.0.1-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5f72bf40b993212f7bb0b0bf84d1775f01ce29d2b3f926a04d0adafa2b1786d3 |
|
| MD5 | e3862b97bba392ca536303fb0e1298b5 |
|
| BLAKE2b-256 | 512f006b446eae3c85c9f44715c624d6ebdc435fbfeb68c7295a5d88037e659b |