This is the final project for DS4A Colombia. This project was a common project with Chia's municipality.
The Municipal Mayor's Office, through different sources, has a set of relevant data for which it is necessary to carry out a cross-analysis that allows identifying, stratifying, segmenting and generating spaces for social ecosistem, economic and security conditions for the municipality supported in conditions that allows feedback and decision-making based on plans to establish programs and strategies. The perception of the security risk of the population of the municipality is 41% which is a high value and represents one of the biggest problems for the municipality.
From the governmental and social context, it has an impact in improving the conditions for special programs oriented to vulnerable populations and from the security aspect it will improve the perception taking into account the necessary measures to achieve a safer municipality. In addition it would allow the municipality to become a benchmark at the technological and administration levels within the municipalities of the “Sabana”
- Use Python 3.8 version
- Create a virtual environment called venv (e.g:
python3 -m venv venv) - Activate the vevn environment and install requirements using for example
pip install -r requirements.txt - Ask for the data files and copy them into a folder located at /data/csv. If not create the environment variables to use files from s3
- Run the project
python app.py - Go to http://localhost:8050/
- Enjoy it.
The project consists of apps that can represent either pages or special features of the application. A vital application called layout defines the layout of the application. It means the components that will show on all pages. To create a page, consider the layout application to show the page in the sidebar. First, create a folder in the apps folder (the naming convention is "app_name_of_app". Each application can have graphs or components to display and a layout, which app.py should call to work.