Skip to content

Commit

Permalink
update 2x2 and similar occ notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgzil committed Mar 12, 2024
1 parent 769faef commit e351065
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 236 deletions.
241 changes: 13 additions & 228 deletions dap_prinz_green_jobs/notebooks/2x2_typologies.ipynb

Large diffs are not rendered by default.

53 changes: 45 additions & 8 deletions dap_prinz_green_jobs/notebooks/Similar_occupations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"id": "0b2bdc71-1edf-4f6f-8ad5-8dccc70e2688",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -60,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"id": "6c9d06db-f4e1-4b54-a9b3-45e60837172e",
"metadata": {},
"outputs": [],
Expand All @@ -70,10 +70,18 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 3,
"id": "6fb3f385-2286-4fa7-b4e0-e31710c54b34",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2024-03-07 09:26:54,719 - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials\n"
]
}
],
"source": [
"occ_most_similar = load_s3_data(\n",
" BUCKET_NAME,\n",
Expand All @@ -84,10 +92,18 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"id": "c54dcf6e-cd28-43ce-b293-516b5431e15e",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2024-03-07 09:26:57,241 - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials\n"
]
}
],
"source": [
"occ_agg = load_s3_data(\n",
" BUCKET_NAME,\n",
Expand All @@ -100,7 +116,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 5,
"id": "d7d2e90a-9796-4b3c-bb90-e5220fa41ffb",
"metadata": {},
"outputs": [],
Expand All @@ -113,7 +129,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 6,
"id": "7cf555e4-9b0b-4d67-991b-1366429c091e",
"metadata": {},
"outputs": [],
Expand All @@ -122,6 +138,27 @@
"soc_2_prop_green = dict(zip(occ_agg['SOC_2020_EXT'], occ_agg[\"average_prop_green_skills\"]))"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "fdf6f78e-7fee-46f1-ac24-2d0e1b02ccbf",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1346"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(occ_most_similar)"
]
},
{
"cell_type": "markdown",
"id": "f570f2b6-253c-49c1-8f9d-08fba3ec793c",
Expand Down

0 comments on commit e351065

Please sign in to comment.