From 97926cb1ecddcddd66c9e96f40b5a4a289723ec2 Mon Sep 17 00:00:00 2001 From: Biel Stela Date: Fri, 24 Nov 2023 15:08:23 +0100 Subject: [PATCH] clean outputs --- science/notebooks/parse_data.ipynb | 122 +++++------------------------ 1 file changed, 18 insertions(+), 104 deletions(-) diff --git a/science/notebooks/parse_data.ipynb b/science/notebooks/parse_data.ipynb index e229fd9d..2cade1f0 100644 --- a/science/notebooks/parse_data.ipynb +++ b/science/notebooks/parse_data.ipynb @@ -2,13 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "initial_id", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.070934777Z", - "start_time": "2023-11-24T12:02:02.050112408Z" - }, "collapsed": true }, "outputs": [], @@ -35,13 +31,9 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "d818527072dc8fa4", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.180290616Z", - "start_time": "2023-11-24T12:02:02.058542286Z" - }, "collapsed": false }, "outputs": [], @@ -82,13 +74,9 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "488a7571958f020e", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.751974029Z", - "start_time": "2023-11-24T12:02:02.121734274Z" - }, "collapsed": false }, "outputs": [], @@ -98,13 +86,9 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "5d8f9bcec39161ca", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.786580914Z", - "start_time": "2023-11-24T12:02:02.754063878Z" - }, "collapsed": false }, "outputs": [], @@ -117,25 +101,12 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "9470191f5eae472d", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.801618533Z", - "start_time": "2023-11-24T12:02:02.789382852Z" - }, "collapsed": false }, - "outputs": [ - { - "data": { - "text/plain": "{'category': ['CARICOM',\n 'OECS',\n 'Overseas Territory',\n 'Climate Impact Risk ',\n 'CO2 emissions (Category)',\n 'Climate Policy (NDC)',\n 'Climate Policy (Adaptation Communication)'],\n 'continuous': ['CO2 emissions (tons per capita)',\n 'Climate Adaptation, Implementation Cost (estimated)',\n 'Climate Mitigation, Implementation Cost (estiamted)',\n 'Total Damage Caused by Disasters (2000-2021)',\n 'People Affected by Disasters (2000-2021)',\n 'Readiness- GAIN Index']}" - }, - "execution_count": 8, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "types = datasets_info.group_by(\"Type\").agg(pl.col(\"ID\")).transpose().to_dict(as_series=False)\n", "types = {e[0][0]: e[1] for e in types.values()}" @@ -143,13 +114,9 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "2ee669932a1cfa55", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.801871856Z", - "start_time": "2023-11-24T12:02:02.797922149Z" - }, "collapsed": false }, "outputs": [], @@ -162,13 +129,9 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "3e046dc68615da8", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.809987424Z", - "start_time": "2023-11-24T12:02:02.800331016Z" - }, "collapsed": false }, "outputs": [], @@ -180,13 +143,9 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "b6ef77466f39dc14", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.908866268Z", - "start_time": "2023-11-24T12:02:02.846089824Z" - }, "collapsed": false }, "outputs": [], @@ -211,13 +170,9 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "d7e9143419da120d", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.916123559Z", - "start_time": "2023-11-24T12:02:02.908717865Z" - }, "collapsed": false }, "outputs": [], @@ -228,38 +183,21 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "433430f740954e8d", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.925770670Z", - "start_time": "2023-11-24T12:02:02.914650678Z" - }, "collapsed": false }, - "outputs": [ - { - "data": { - "text/plain": "[{'iso3': 'ABW', 'value': None},\n {'iso3': 'AIA', 'value': None},\n {'iso3': 'ATG', 'value': 1700000000.0},\n {'iso3': 'BES', 'value': None},\n {'iso3': 'BHS', 'value': 4000000000.0},\n {'iso3': 'BLZ', 'value': 318128096.0},\n {'iso3': 'BMU', 'value': None},\n {'iso3': 'BRB', 'value': 100000000.0},\n {'iso3': 'CRI', 'value': None},\n {'iso3': 'CUW', 'value': 151700000.0},\n {'iso3': 'CYM', 'value': None},\n {'iso3': 'DMA', 'value': None},\n {'iso3': 'DOM', 'value': 8732342272.0},\n {'iso3': 'GLP', 'value': None},\n {'iso3': 'GRD', 'value': 259400000.0},\n {'iso3': 'GUY', 'value': None},\n {'iso3': 'HND', 'value': None},\n {'iso3': 'HTI', 'value': 980000000.0},\n {'iso3': 'JAM', 'value': None},\n {'iso3': 'KNA', 'value': None},\n {'iso3': 'LCA', 'value': None},\n {'iso3': 'MEX', 'value': None},\n {'iso3': 'MSR', 'value': None},\n {'iso3': 'PAN', 'value': None},\n {'iso3': 'SUR', 'value': None},\n {'iso3': 'TCA', 'value': None},\n {'iso3': 'TTO', 'value': 19570004.0},\n {'iso3': 'VCT', 'value': None},\n {'iso3': 'VGB', 'value': None},\n {'iso3': 'VIR', 'value': None}]" - }, - "execution_count": 13, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "make_datum(\"Climate Adaptation, Implementation Cost (estimated)\")" ] }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "8a723924bc0d0659", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:02:02.966032677Z", - "start_time": "2023-11-24T12:02:02.921856900Z" - }, "collapsed": false }, "outputs": [], @@ -280,13 +218,9 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "id": "8650aab7d8d402bb", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:12:39.309109007Z", - "start_time": "2023-11-24T12:12:39.295781009Z" - }, "collapsed": false }, "outputs": [], @@ -381,24 +315,12 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "id": "4c2081ae1aacae52", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:12:40.835518807Z", - "start_time": "2023-11-24T12:12:40.120667799Z" - }, "collapsed": false }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "{'CARICOM Members': 35, 'Climate Readiness - Adapation estimated cost': 41, 'OECS Members': 36, 'Overseas Territory or Constituent Country': 37, 'Climate Policy': 46, 'Climate Impact Risk Level': 38, 'CO2 emissions (Tons per Capita)': 39, 'CO2 emissions level': 40, 'Climate Readiness - Mitigation estimated cost': 42, 'Loss and Damage': 43, 'Lives and Livelihoods': 44, 'Climate Readiness (ND-GAIN Score)': 45, 'Climate Adaptation Plan': 47}\n" - ] - } - ], + "outputs": [], "source": [ "dataset_ids = get_ids(\"datasets\")\n", "print(dataset_ids)" @@ -406,13 +328,9 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "id": "8681c1d95493974c", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:12:40.895623718Z", - "start_time": "2023-11-24T12:12:40.840057059Z" - }, "collapsed": false }, "outputs": [], @@ -445,13 +363,9 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": null, "id": "d0a17b731fcdf6af", "metadata": { - "ExecuteTime": { - "end_time": "2023-11-24T12:12:41.486034418Z", - "start_time": "2023-11-24T12:12:41.483018384Z" - }, "collapsed": false }, "outputs": [],