Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

CityOfLosAngeles/equity-procurement-analysis

Repository files navigation

equity-procurement-analysis

Following the City’s 2021 migration of procurement data into a Salesforce database, we assessed the City’s social equitability in choosing business partners--the first attempt to do so in over 20 years!

Important Reminders

  1. Changing the Google Sheet's column names and tab names has profound impact on Tableau's ability to pull the data. If any changes get made to the script/google sheet, you need to check on the Tableau and make sure it is okay.
  2. Changing the Google Sheet's tab orders has profound impact on the way these scripts writes to the Google Sheet. Do not ever change the tab orders. If you want to add a new tab in the Sheet, append it to the end.
  3. If you make changes to the notebooks, make sure those changes are reflected in the respective .py file in the src folder. We created this sync to allow future maintainers and developers to have an easier time debugging the scripts via Jupyter Notebook. Feel free to not use the notebooks if you find it easier to debug merely through Python-- easier debugging was our only intended purpose for including the notebooks themselves as well.

Project Organization

├── LICENSE
├── Makefile                 <- Makefile with commands like `make data` or `make train`
├── README.md                <- The top-level README for developers using this project.
├── data                     <- A directory for local data.
├── models                   <- Trained and serialized models, model predictions, or model summaries
│
├── notebooks                <- Jupyter notebooks.
│
├── references               <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports                  <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures              <- Generated graphics and figures to be used in reporting
│
│
├── conda-requirements.txt   <- The requirements file for conda installs.
├── requirements.txt         <- The requirements file for reproducing the analysis environment, e.g.
│                               generated with `pip freeze > requirements.txt`
│
├── setup.py                 <- makes project pip installable (pip install -e .) so src can be imported
├── src                      <- Source code for use in this project.
│   ├── __init__.py          <- Makes src a Python module
│   │
│   ├── data                 <- Scripts to download or generate data
│   ├── features             <- Scripts to turn raw data into features for modeling
│   ├── models               <- Scripts to train models and then use trained models to make
│   └── visualization        <- Scripts to create exploratory and results oriented visualizations

Starting with JupyterLab

  1. Sign in with credentials. More details on getting started here.
  2. Launch a new terminal and clone repository: git clone https://github.com/CityOfLosAngeles/REPO-NAME.git
  3. Change into directory: cd REPO-NAME
  4. Make a new branch and start on a new task: git checkout -b new-branch

Starting with Docker

  1. Start with Steps 1-2 above
  2. Build Docker container: docker-compose.exe build
  3. Start Docker container docker-compose.exe up
  4. Open Jupyter Lab notebook by typing localhost:8888/lab/ in the browser.

Setting up a Conda Environment

  1. conda create --name my_project_name

  2. source activate my_project_name

  3. conda install --file conda-requirements.txt -c conda-forge

  4. pip install requirements.txt

Project based on the cookiecutter data science project template. #cookiecutterdatascience

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published