Community Capitals Week Two

Week Two
Author

Community Capitals

Published

June 7, 2024

print("First some R Code")
[1] "First some R Code"
# Check for virtual environment, if it doesn't exist, create the venv, if it exists
# then use the venv called "r-python"

if (virtualenv_exists("r-python")) {
  use_virtualenv("r-python")
} else {
  virtualenv_create("r-python")
  use_virtualenv("r-python")
}
# Installing dependencies for the python virtualenv

virtualenv_install(envname = "r-python", packages = c("numpy", "pandas", "scikit-learn"), all = TRUE)
Using virtual environment "r-python" ...
+ "C:/Users/harun/Documents/.virtualenvs/r-python/Scripts/python.exe" -m pip install --upgrade --no-user numpy pandas scikit-learn
import pandas as pd
print("Currently using Pandas Version:", pd.__version__)
Currently using Pandas Version: 2.2.2

Event Database Continuation

This week we continued our work looking at datasets for different events regarding health facilities, employment shocks and disasters. Our work consisted of cleaning the datasets, combining several datasets, and creating a event_magnitude unit value that can summarize each event.

FEMA Disaster

Employment Shocks

Health Facilities