From bd92bcbb10178fe944b7c9c28cc0f169a4684aee Mon Sep 17 00:00:00 2001 From: jnaiman Date: Thu, 16 Nov 2023 16:25:30 -0600 Subject: [PATCH] Auto-commit: Thu Nov 16 16:25:29 CST 2023 --- .../inClass_week13-checkpoint.ipynb | 725 +++++++++++++++++- week13/inClass_week13.ipynb | 356 +++++++-- 2 files changed, 998 insertions(+), 83 deletions(-) diff --git a/week13/.ipynb_checkpoints/inClass_week13-checkpoint.ipynb b/week13/.ipynb_checkpoints/inClass_week13-checkpoint.ipynb index 6d114ff..fe205f7 100644 --- a/week13/.ipynb_checkpoints/inClass_week13-checkpoint.ipynb +++ b/week13/.ipynb_checkpoints/inClass_week13-checkpoint.ipynb @@ -265,7 +265,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "029900a9", + "id": "445c8380", "metadata": {}, "outputs": [ { @@ -358,7 +358,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "ddd1c6d4", + "id": "79d48028", "metadata": {}, "outputs": [ { @@ -390,7 +390,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "91daf88a", + "id": "5b3105e0", "metadata": {}, "outputs": [], "source": [ @@ -400,7 +400,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "79a6d462", + "id": "4f27717a", "metadata": {}, "outputs": [ { @@ -610,7 +610,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "7764ac66", + "id": "9d58b514", "metadata": {}, "outputs": [ { @@ -703,7 +703,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "7e615038", + "id": "800a134f", "metadata": {}, "outputs": [], "source": [ @@ -713,7 +713,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "6e12c001", + "id": "bce1514f", "metadata": {}, "outputs": [ { @@ -958,7 +958,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "99cd8f84", + "id": "f41cecf6", "metadata": {}, "outputs": [], "source": [ @@ -970,7 +970,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "2eb3fb3d", + "id": "eaa7c72e", "metadata": {}, "outputs": [ { @@ -1055,7 +1055,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "3abc3c1c", + "id": "731f8307", "metadata": {}, "outputs": [ { @@ -1149,7 +1149,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "dbab9910", + "id": "ebc717fc", "metadata": {}, "outputs": [], "source": [ @@ -1159,7 +1159,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "78f97536", + "id": "c036f046", "metadata": {}, "outputs": [ { @@ -1180,7 +1180,7 @@ { "cell_type": "code", "execution_count": 28, - "id": "b6987ea3", + "id": "1b95f743", "metadata": {}, "outputs": [ { @@ -1280,7 +1280,7 @@ { "cell_type": "code", "execution_count": 29, - "id": "4fbc9d5d", + "id": "63b86693", "metadata": {}, "outputs": [ { @@ -1525,7 +1525,7 @@ { "cell_type": "code", "execution_count": 31, - "id": "fbf51530", + "id": "64a5a3b4", "metadata": {}, "outputs": [], "source": [ @@ -1567,7 +1567,7 @@ { "cell_type": "code", "execution_count": 33, - "id": "f5c54199", + "id": "d0c37308", "metadata": {}, "outputs": [ { @@ -1589,7 +1589,7 @@ { "cell_type": "code", "execution_count": 34, - "id": "5f496ecc", + "id": "7f306fa2", "metadata": {}, "outputs": [ { @@ -1611,7 +1611,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "51416941", + "id": "257f345e", "metadata": {}, "outputs": [ { @@ -1633,7 +1633,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "a9c87513", + "id": "8e3f410d", "metadata": {}, "outputs": [ { @@ -1661,7 +1661,7 @@ { "cell_type": "code", "execution_count": 37, - "id": "59dc14b0", + "id": "f7487b1b", "metadata": {}, "outputs": [ { @@ -1732,7 +1732,7 @@ { "cell_type": "code", "execution_count": 38, - "id": "9785eed9", + "id": "fd0212b6", "metadata": {}, "outputs": [ { @@ -1753,7 +1753,7 @@ { "cell_type": "code", "execution_count": 39, - "id": "fdf075b8", + "id": "a9dfbb24", "metadata": {}, "outputs": [ { @@ -2001,7 +2001,7 @@ { "cell_type": "code", "execution_count": 40, - "id": "bb0ed833", + "id": "6217a931", "metadata": {}, "outputs": [ { @@ -2062,7 +2062,7 @@ { "cell_type": "code", "execution_count": 41, - "id": "e4db9053", + "id": "c50a5e76", "metadata": {}, "outputs": [ { @@ -2475,7 +2475,7 @@ { "cell_type": "code", "execution_count": 42, - "id": "c70261d0", + "id": "c0350e49", "metadata": {}, "outputs": [ { @@ -2700,7 +2700,7 @@ { "cell_type": "code", "execution_count": 43, - "id": "48fa5d89", + "id": "172c700a", "metadata": {}, "outputs": [], "source": [ @@ -2710,7 +2710,7 @@ { "cell_type": "code", "execution_count": 44, - "id": "63485ffd", + "id": "68665b76", "metadata": {}, "outputs": [], "source": [ @@ -2720,7 +2720,7 @@ { "cell_type": "code", "execution_count": 45, - "id": "95e2caf4", + "id": "d39a2fae", "metadata": {}, "outputs": [ { @@ -2741,7 +2741,7 @@ { "cell_type": "code", "execution_count": 46, - "id": "1dacb6c9", + "id": "6c959a44", "metadata": {}, "outputs": [ { @@ -2994,7 +2994,7 @@ { "cell_type": "code", "execution_count": 47, - "id": "1a342b6f", + "id": "6e6cf8aa", "metadata": {}, "outputs": [], "source": [ @@ -3005,7 +3005,7 @@ { "cell_type": "code", "execution_count": 48, - "id": "46c083dd", + "id": "94b93938", "metadata": {}, "outputs": [ { @@ -3274,7 +3274,7 @@ { "cell_type": "code", "execution_count": 51, - "id": "4f7b6d3b", + "id": "b91bbbf6", "metadata": {}, "outputs": [ { @@ -3360,7 +3360,7 @@ { "cell_type": "code", "execution_count": 60, - "id": "46a15c61", + "id": "25c1c870", "metadata": {}, "outputs": [ { @@ -3467,7 +3467,7 @@ { "cell_type": "code", "execution_count": 66, - "id": "02003a0b", + "id": "e3f5b2fe", "metadata": {}, "outputs": [ { @@ -3720,7 +3720,7 @@ { "cell_type": "code", "execution_count": 68, - "id": "24327ba2", + "id": "1c8ab814", "metadata": {}, "outputs": [ { @@ -3782,7 +3782,7 @@ { "cell_type": "code", "execution_count": 69, - "id": "4e655d1c", + "id": "3550b983", "metadata": {}, "outputs": [], "source": [ @@ -3792,7 +3792,7 @@ { "cell_type": "code", "execution_count": 70, - "id": "867ad4da", + "id": "be4d58aa", "metadata": {}, "outputs": [ { @@ -4061,7 +4061,7 @@ { "cell_type": "code", "execution_count": 71, - "id": "2b1f1bf5", + "id": "11f57ceb", "metadata": {}, "outputs": [ { @@ -4150,10 +4150,657 @@ "corg_subset2.head()" ] }, + { + "cell_type": "code", + "execution_count": 80, + "id": "bb8f814c", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "
\n", + "" + ], + "text/plain": [ + "alt.LayerChart(...)" + ] + }, + "execution_count": 80, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "geo = alt.topo_feature(data.world_110m.url, feature='countries')\n", + "\n", + "# world background\n", + "world = alt.Chart(geo).mark_geoshape(\n", + " fill='gray',\n", + " stroke='white'\n", + ").properties(\n", + " width=800,\n", + " height=400\n", + ").project('equirectangular')\n", + "\n", + "points = alt.Chart(corg_subset2).mark_circle().encode(\n", + " longitude = 'Longitude:Q',\n", + " latitude = 'Latitude:Q',\n", + " size=alt.Size('Total Corg:Q', scale=alt.Scale(type='log')),\n", + " #size=alt.Size('Total Corg:Q', scale=None),\n", + " tooltip='Country'\n", + ")\n", + "\n", + "world + points" + ] + }, + { + "cell_type": "code", + "execution_count": 81, + "id": "f8f50e17", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Years1917-01-01 00:00:001918-01-01 00:00:001919-01-01 00:00:001920-01-01 00:00:001921-01-01 00:00:001922-01-01 00:00:001923-01-01 00:00:001924-01-01 00:00:001925-01-01 00:00:001926-01-01 00:00:00...2014-01-01 00:00:002015-01-01 00:00:002016-01-01 00:00:002017-01-01 00:00:002018-01-01 00:00:002019-01-01 00:00:002020-01-01 00:00:00LatitudeLongitudeTotal Corg
Country
United States0000000000...280301229213198118239.783730-100.44588216130
Brazil0000000000...0000000-10.333333-53.2000001
Russia0000000000...1272372172603291891664.68631497.7453061834
Japan0000000000...002200036.574844139.2394187
Vietnam0000000000...000130015.926666107.9650864
\n", + "

5 rows × 107 columns

\n", + "
" + ], + "text/plain": [ + "Years 1917-01-01 00:00:00 1918-01-01 00:00:00 1919-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1920-01-01 00:00:00 1921-01-01 00:00:00 1922-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1923-01-01 00:00:00 1924-01-01 00:00:00 1925-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1926-01-01 00:00:00 ... 2014-01-01 00:00:00 \\\n", + "Country ... \n", + "United States 0 ... 280 \n", + "Brazil 0 ... 0 \n", + "Russia 0 ... 127 \n", + "Japan 0 ... 0 \n", + "Vietnam 0 ... 0 \n", + "\n", + "Years 2015-01-01 00:00:00 2016-01-01 00:00:00 2017-01-01 00:00:00 \\\n", + "Country \n", + "United States 301 229 213 \n", + "Brazil 0 0 0 \n", + "Russia 237 217 260 \n", + "Japan 0 2 2 \n", + "Vietnam 0 0 1 \n", + "\n", + "Years 2018-01-01 00:00:00 2019-01-01 00:00:00 2020-01-01 00:00:00 \\\n", + "Country \n", + "United States 198 118 2 \n", + "Brazil 0 0 0 \n", + "Russia 329 189 16 \n", + "Japan 0 0 0 \n", + "Vietnam 3 0 0 \n", + "\n", + "Years Latitude Longitude Total Corg \n", + "Country \n", + "United States 39.783730 -100.445882 16130 \n", + "Brazil -10.333333 -53.200000 1 \n", + "Russia 64.686314 97.745306 1834 \n", + "Japan 36.574844 139.239418 7 \n", + "Vietnam 15.926666 107.965086 4 \n", + "\n", + "[5 rows x 107 columns]" + ] + }, + "execution_count": 81, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "corg_clean_t.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 82, + "id": "c68a14c1", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Years1917-01-01 00:00:001918-01-01 00:00:001919-01-01 00:00:001920-01-01 00:00:001921-01-01 00:00:001922-01-01 00:00:001923-01-01 00:00:001924-01-01 00:00:001925-01-01 00:00:001926-01-01 00:00:00...2013-01-01 00:00:002014-01-01 00:00:002015-01-01 00:00:002016-01-01 00:00:002017-01-01 00:00:002018-01-01 00:00:002019-01-01 00:00:002020-01-01 00:00:00LatitudeLongitude
Country
United States0000000000...376280301229213198118239.783730-100.445882
Brazil0000000000...00000000-10.333333-53.200000
Russia0000000000...1151272372172603291891664.68631497.745306
Japan0000000000...0002200036.574844139.239418
Vietnam0000000000...0000130015.926666107.965086
\n", + "

5 rows × 106 columns

\n", + "
" + ], + "text/plain": [ + "Years 1917-01-01 00:00:00 1918-01-01 00:00:00 1919-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1920-01-01 00:00:00 1921-01-01 00:00:00 1922-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1923-01-01 00:00:00 1924-01-01 00:00:00 1925-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1926-01-01 00:00:00 ... 2013-01-01 00:00:00 \\\n", + "Country ... \n", + "United States 0 ... 376 \n", + "Brazil 0 ... 0 \n", + "Russia 0 ... 115 \n", + "Japan 0 ... 0 \n", + "Vietnam 0 ... 0 \n", + "\n", + "Years 2014-01-01 00:00:00 2015-01-01 00:00:00 2016-01-01 00:00:00 \\\n", + "Country \n", + "United States 280 301 229 \n", + "Brazil 0 0 0 \n", + "Russia 127 237 217 \n", + "Japan 0 0 2 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 2017-01-01 00:00:00 2018-01-01 00:00:00 2019-01-01 00:00:00 \\\n", + "Country \n", + "United States 213 198 118 \n", + "Brazil 0 0 0 \n", + "Russia 260 329 189 \n", + "Japan 2 0 0 \n", + "Vietnam 1 3 0 \n", + "\n", + "Years 2020-01-01 00:00:00 Latitude Longitude \n", + "Country \n", + "United States 2 39.783730 -100.445882 \n", + "Brazil 0 -10.333333 -53.200000 \n", + "Russia 16 64.686314 97.745306 \n", + "Japan 0 36.574844 139.239418 \n", + "Vietnam 0 15.926666 107.965086 \n", + "\n", + "[5 rows x 106 columns]" + ] + }, + "execution_count": 82, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "corg_clean2 = corg_clean_t.loc[:,(corg_clean_t.columns!='Total Corg')].copy()\n", + "corg_clean2.head()" + ] + }, { "cell_type": "code", "execution_count": null, - "id": "f7c0f88e", + "id": "8f54bcb9", "metadata": {}, "outputs": [], "source": [] diff --git a/week13/inClass_week13.ipynb b/week13/inClass_week13.ipynb index d9aa7c9..fe205f7 100644 --- a/week13/inClass_week13.ipynb +++ b/week13/inClass_week13.ipynb @@ -265,7 +265,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "ffeee878", + "id": "445c8380", "metadata": {}, "outputs": [ { @@ -358,7 +358,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "befa58e5", + "id": "79d48028", "metadata": {}, "outputs": [ { @@ -390,7 +390,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "482a6d47", + "id": "5b3105e0", "metadata": {}, "outputs": [], "source": [ @@ -400,7 +400,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "f1b94657", + "id": "4f27717a", "metadata": {}, "outputs": [ { @@ -610,7 +610,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "b8ad37e1", + "id": "9d58b514", "metadata": {}, "outputs": [ { @@ -703,7 +703,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "1773cf41", + "id": "800a134f", "metadata": {}, "outputs": [], "source": [ @@ -713,7 +713,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "53840190", + "id": "bce1514f", "metadata": {}, "outputs": [ { @@ -958,7 +958,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "ee4458b7", + "id": "f41cecf6", "metadata": {}, "outputs": [], "source": [ @@ -970,7 +970,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "0e25b88f", + "id": "eaa7c72e", "metadata": {}, "outputs": [ { @@ -1055,7 +1055,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "208a0994", + "id": "731f8307", "metadata": {}, "outputs": [ { @@ -1149,7 +1149,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "79a01231", + "id": "ebc717fc", "metadata": {}, "outputs": [], "source": [ @@ -1159,7 +1159,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "59893d88", + "id": "c036f046", "metadata": {}, "outputs": [ { @@ -1180,7 +1180,7 @@ { "cell_type": "code", "execution_count": 28, - "id": "af5ab162", + "id": "1b95f743", "metadata": {}, "outputs": [ { @@ -1280,7 +1280,7 @@ { "cell_type": "code", "execution_count": 29, - "id": "334650f4", + "id": "63b86693", "metadata": {}, "outputs": [ { @@ -1525,7 +1525,7 @@ { "cell_type": "code", "execution_count": 31, - "id": "01991955", + "id": "64a5a3b4", "metadata": {}, "outputs": [], "source": [ @@ -1567,7 +1567,7 @@ { "cell_type": "code", "execution_count": 33, - "id": "6fdbcb8b", + "id": "d0c37308", "metadata": {}, "outputs": [ { @@ -1589,7 +1589,7 @@ { "cell_type": "code", "execution_count": 34, - "id": "034a74f3", + "id": "7f306fa2", "metadata": {}, "outputs": [ { @@ -1611,7 +1611,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "2e4ed113", + "id": "257f345e", "metadata": {}, "outputs": [ { @@ -1633,7 +1633,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "5b2141ec", + "id": "8e3f410d", "metadata": {}, "outputs": [ { @@ -1661,7 +1661,7 @@ { "cell_type": "code", "execution_count": 37, - "id": "12ab2ce8", + "id": "f7487b1b", "metadata": {}, "outputs": [ { @@ -1732,7 +1732,7 @@ { "cell_type": "code", "execution_count": 38, - "id": "7f82e24b", + "id": "fd0212b6", "metadata": {}, "outputs": [ { @@ -1753,7 +1753,7 @@ { "cell_type": "code", "execution_count": 39, - "id": "15b892e8", + "id": "a9dfbb24", "metadata": {}, "outputs": [ { @@ -2001,7 +2001,7 @@ { "cell_type": "code", "execution_count": 40, - "id": "6081178b", + "id": "6217a931", "metadata": {}, "outputs": [ { @@ -2062,7 +2062,7 @@ { "cell_type": "code", "execution_count": 41, - "id": "41bd43d6", + "id": "c50a5e76", "metadata": {}, "outputs": [ { @@ -2475,7 +2475,7 @@ { "cell_type": "code", "execution_count": 42, - "id": "025fba7c", + "id": "c0350e49", "metadata": {}, "outputs": [ { @@ -2700,7 +2700,7 @@ { "cell_type": "code", "execution_count": 43, - "id": "72a17a17", + "id": "172c700a", "metadata": {}, "outputs": [], "source": [ @@ -2710,7 +2710,7 @@ { "cell_type": "code", "execution_count": 44, - "id": "85ac690b", + "id": "68665b76", "metadata": {}, "outputs": [], "source": [ @@ -2720,7 +2720,7 @@ { "cell_type": "code", "execution_count": 45, - "id": "1df0c860", + "id": "d39a2fae", "metadata": {}, "outputs": [ { @@ -2741,7 +2741,7 @@ { "cell_type": "code", "execution_count": 46, - "id": "5ffedb64", + "id": "6c959a44", "metadata": {}, "outputs": [ { @@ -2994,7 +2994,7 @@ { "cell_type": "code", "execution_count": 47, - "id": "96e07b27", + "id": "6e6cf8aa", "metadata": {}, "outputs": [], "source": [ @@ -3005,7 +3005,7 @@ { "cell_type": "code", "execution_count": 48, - "id": "4ace7e2c", + "id": "94b93938", "metadata": {}, "outputs": [ { @@ -3274,7 +3274,7 @@ { "cell_type": "code", "execution_count": 51, - "id": "2ea8031f", + "id": "b91bbbf6", "metadata": {}, "outputs": [ { @@ -3360,7 +3360,7 @@ { "cell_type": "code", "execution_count": 60, - "id": "e23947df", + "id": "25c1c870", "metadata": {}, "outputs": [ { @@ -3467,7 +3467,7 @@ { "cell_type": "code", "execution_count": 66, - "id": "f9bcb41a", + "id": "e3f5b2fe", "metadata": {}, "outputs": [ { @@ -3720,7 +3720,7 @@ { "cell_type": "code", "execution_count": 68, - "id": "980e02fc", + "id": "1c8ab814", "metadata": {}, "outputs": [ { @@ -3782,7 +3782,7 @@ { "cell_type": "code", "execution_count": 69, - "id": "1365f36b", + "id": "3550b983", "metadata": {}, "outputs": [], "source": [ @@ -3792,7 +3792,7 @@ { "cell_type": "code", "execution_count": 70, - "id": "d81466e8", + "id": "be4d58aa", "metadata": {}, "outputs": [ { @@ -4061,7 +4061,7 @@ { "cell_type": "code", "execution_count": 71, - "id": "a08303c3", + "id": "11f57ceb", "metadata": {}, "outputs": [ { @@ -4153,7 +4153,7 @@ { "cell_type": "code", "execution_count": 80, - "id": "3d72ec9e", + "id": "bb8f814c", "metadata": {}, "outputs": [ { @@ -4261,7 +4261,7 @@ { "cell_type": "code", "execution_count": 81, - "id": "f37b83bc", + "id": "f8f50e17", "metadata": {}, "outputs": [ { @@ -4529,13 +4529,281 @@ }, { "cell_type": "code", - "execution_count": null, - "id": "775caf15", + "execution_count": 82, + "id": "c68a14c1", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Years1917-01-01 00:00:001918-01-01 00:00:001919-01-01 00:00:001920-01-01 00:00:001921-01-01 00:00:001922-01-01 00:00:001923-01-01 00:00:001924-01-01 00:00:001925-01-01 00:00:001926-01-01 00:00:00...2013-01-01 00:00:002014-01-01 00:00:002015-01-01 00:00:002016-01-01 00:00:002017-01-01 00:00:002018-01-01 00:00:002019-01-01 00:00:002020-01-01 00:00:00LatitudeLongitude
Country
United States0000000000...376280301229213198118239.783730-100.445882
Brazil0000000000...00000000-10.333333-53.200000
Russia0000000000...1151272372172603291891664.68631497.745306
Japan0000000000...0002200036.574844139.239418
Vietnam0000000000...0000130015.926666107.965086
\n", + "

5 rows × 106 columns

\n", + "
" + ], + "text/plain": [ + "Years 1917-01-01 00:00:00 1918-01-01 00:00:00 1919-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1920-01-01 00:00:00 1921-01-01 00:00:00 1922-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1923-01-01 00:00:00 1924-01-01 00:00:00 1925-01-01 00:00:00 \\\n", + "Country \n", + "United States 0 0 0 \n", + "Brazil 0 0 0 \n", + "Russia 0 0 0 \n", + "Japan 0 0 0 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 1926-01-01 00:00:00 ... 2013-01-01 00:00:00 \\\n", + "Country ... \n", + "United States 0 ... 376 \n", + "Brazil 0 ... 0 \n", + "Russia 0 ... 115 \n", + "Japan 0 ... 0 \n", + "Vietnam 0 ... 0 \n", + "\n", + "Years 2014-01-01 00:00:00 2015-01-01 00:00:00 2016-01-01 00:00:00 \\\n", + "Country \n", + "United States 280 301 229 \n", + "Brazil 0 0 0 \n", + "Russia 127 237 217 \n", + "Japan 0 0 2 \n", + "Vietnam 0 0 0 \n", + "\n", + "Years 2017-01-01 00:00:00 2018-01-01 00:00:00 2019-01-01 00:00:00 \\\n", + "Country \n", + "United States 213 198 118 \n", + "Brazil 0 0 0 \n", + "Russia 260 329 189 \n", + "Japan 2 0 0 \n", + "Vietnam 1 3 0 \n", + "\n", + "Years 2020-01-01 00:00:00 Latitude Longitude \n", + "Country \n", + "United States 2 39.783730 -100.445882 \n", + "Brazil 0 -10.333333 -53.200000 \n", + "Russia 16 64.686314 97.745306 \n", + "Japan 0 36.574844 139.239418 \n", + "Vietnam 0 15.926666 107.965086 \n", + "\n", + "[5 rows x 106 columns]" + ] + }, + "execution_count": 82, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "corg_clean2 = corg_clea" + "corg_clean2 = corg_clean_t.loc[:,(corg_clean_t.columns!='Total Corg')].copy()\n", + "corg_clean2.head()" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "8f54bcb9", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {