This code computes the modal shares in Switzerland, in particular the share of car sharing, based on 2021 data. The modal shares are defined as daily distances.
Results can be found as CSV files in the folder 'output/2021':
- as absolute distances or
- as relative percentages.
Car sharing represents 0.11% of the average daily distance within Switzerland made by the resident population (33 meters out of 30 kilometers). It corresponds to 0.16% of the distance covered by car (33 meters out of 21 kilometers).
These instructions will get you a copy of the project up and running on your local machine for reproducing the result and understanding how it has been generated.
To run the code itself, you need python 3 and pandas.
For it to produce the results, you also need the raw data of the Transport and Mobility Microcensus (MTMC) 2021, not included on GitHub. These data are individual data and therefore not open. You can however get them by filling in this form in German, French or Italian. The cost of the data is available in the document "Mikrozensus Mobilität und Verkehr - Mögliche Zusatzauswertungen"/"Microrecensement mobilité et transports - Analyses supplémentaires possibles".
Please copy the paths to the files etappen.csv and zielpersonen.csv from the Federal Statistical Office in the file config.yml located in the root directory. Then run run_use_of_car_sharing.py in the 'src' folder.
DO NOT commit or share in any way the CSV files etappen.csv or zielpersonen.csv! These are personal data.