This repository contains a Python script to calculate the yearly and seasonal availability of railroads within a municipality's domain. The output includes statistics and graphs based on the data from these railroads, helping organizations make informed decisions about their network performance.
The network-availability
script was developed during an internship at Basler Verkehrs-Betriebe in Basel-City. It aims to provide reliable data on network availability, which can positively impact user satisfaction and contribute to well-being by enhancing autonomy, competence, and relatedness.
- Calculates network availability on a monthly and yearly basis.
- Uses shapefiles and Postgres geoinformation to analyze network data.
- Outputs results as tables, charts, and graphs.
- Supports informed decision-making based on real data.
To use the script, you need to install the following Python libraries:
- pandas
- openpyxl
- ua_parser
- matplotlib.pyplot
You can install these libraries using pip:
pip install pandas openpyxl ua_parser matplotlib
- Clone the repository:
git clone https://github.com/lucalevi/network-availability.git
- Navigate to the repository directory:
cd network-availability
- Run the script in a Jupyter Notebook or Google Colab.
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.
This project is licensed under the GPL-3 License. See the LICENSE file for details.