Prepares data required for visuallization section of C2M2 Kathmandu portal. It takes raw business and workforce survey data from C2M2 Kathmandu survey and performs univariate and bivariate analysis for charts visualization and also for maps section.
You need to have access to raw data of C2M2 Kathmandu Survey to make use of this repo. When you have access to raw data you can prepare data for business and workforce survey using following commands.
Clone this repo
git clone https://github.com/c2m2-asia/kathmandu-data-python.gitOpen project directory
cd kathmandu-data-pythonInstall dependencies
pip install -r requirements.txtYou need to have sql server(we have used postgres in our case) installed and running inorder to save data on sql server
To generate data for business survey
python business.pyTo generate data for workforce survey
python workers.pyTo generate sql dump form postgres server
pg_dump -U <POSTGRES_USER> -h localhost <POSTRGRES_DATABASE> > <DUMP_FILE_NAME>