fix update

This commit is contained in:
mariotgb 2026-05-03 20:26:33 +03:00
parent 9fb76775c2
commit 9582334785

View File

@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 1,
"id": "fc6dab54-147a-4a7c-b55a-9b0dedb054f8",
"metadata": {},
"outputs": [
@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 2,
"id": "b99ed371-9c7b-4678-b99a-eec9f685b08a",
"metadata": {},
"outputs": [
@ -71,7 +71,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 3,
"id": "11be82a1-600d-47cb-bdc7-4ab702a0f25a",
"metadata": {},
"outputs": [
@ -174,7 +174,7 @@
"3 Галина 24 82"
]
},
"execution_count": 32,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
@ -201,7 +201,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 4,
"id": "28e4a60d-f585-450a-8835-8179b7abd18d",
"metadata": {},
"outputs": [
@ -273,7 +273,7 @@
"3 Галина 24 82 90.2"
]
},
"execution_count": 33,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
@ -285,7 +285,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 5,
"id": "da90f033-a30d-46ab-aa87-637a433341e6",
"metadata": {},
"outputs": [
@ -349,7 +349,7 @@
"3 Галина 24 82 90.2"
]
},
"execution_count": 34,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
@ -360,7 +360,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 6,
"id": "5585d60d-440e-4da8-bbf4-5459dbc5b50d",
"metadata": {},
"outputs": [
@ -437,7 +437,7 @@
"3 Галина 24 82 90.2 B"
]
},
"execution_count": 35,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
@ -449,7 +449,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 7,
"id": "80d65487-ea6c-4748-a84f-be79214e7a56",
"metadata": {},
"outputs": [
@ -528,7 +528,7 @@
"B 23.0 79.0 82 76 86.9"
]
},
"execution_count": 36,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
@ -559,7 +559,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 8,
"id": "f2d09831-5792-4682-bfdd-ffc3efc0df5c",
"metadata": {},
"outputs": [
@ -586,7 +586,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 9,
"id": "0a9a3266-8789-48c8-8264-c8980006a376",
"metadata": {},
"outputs": [
@ -597,7 +597,7 @@
" [3, 4]])"
]
},
"execution_count": 38,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
@ -609,7 +609,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 10,
"id": "71c3ff3e-a464-4221-b7e9-c1881d5b5056",
"metadata": {},
"outputs": [
@ -619,7 +619,7 @@
"array([ 0., 2., 4., 6., 8., 10.])"
]
},
"execution_count": 39,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
@ -630,19 +630,19 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 11,
"id": "9662204e-cba0-4f75-af4a-6e147a77eaf0",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[-0.71319182, 1.04410181, 1.19473352],\n",
" [-1.0722541 , -1.09955637, 1.30313997],\n",
" [-0.48331373, -1.38580202, -0.0702427 ]])"
"array([[ 0.99439456, 0.02189998, -0.82691765],\n",
" [ 1.01269877, -1.18328238, 0.8618282 ],\n",
" [ 0.04894217, -1.484882 , 0.03966165]])"
]
},
"execution_count": 40,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
@ -653,7 +653,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 12,
"id": "207af23e-4331-42ad-bf3c-b11548d2ba63",
"metadata": {},
"outputs": [
@ -664,7 +664,7 @@
" [43, 50]])"
]
},
"execution_count": 41,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
@ -694,7 +694,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 13,
"id": "24118a3e-535f-4cce-b625-00b6fbeb77f1",
"metadata": {},
"outputs": [],
@ -705,7 +705,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 14,
"id": "7d522671-9015-40e6-a171-5c66ff4f0e8b",
"metadata": {},
"outputs": [
@ -735,7 +735,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 15,
"id": "41b86818-f387-47dd-9959-f29ae4f7b498",
"metadata": {},
"outputs": [
@ -762,7 +762,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": 16,
"id": "024ae66a-97cf-4bcf-97f9-ddf6a2baf89f",
"metadata": {},
"outputs": [
@ -790,7 +790,7 @@
},
{
"cell_type": "code",
"execution_count": 46,
"execution_count": 17,
"id": "1ceb0bcd-24ed-4f08-a0fe-cd2cc07b154b",
"metadata": {},
"outputs": [
@ -818,7 +818,7 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": 18,
"id": "c9904f74-6742-4543-94c8-0fea58fe3d6b",
"metadata": {},
"outputs": [
@ -847,7 +847,7 @@
},
{
"cell_type": "code",
"execution_count": 48,
"execution_count": 19,
"id": "fa5a83ee-634d-4983-9ecd-dc1963dfa7ce",
"metadata": {},
"outputs": [
@ -882,7 +882,7 @@
},
{
"cell_type": "code",
"execution_count": 49,
"execution_count": 20,
"id": "f88eabff-22bb-47a3-ba56-a59bc689c5ed",
"metadata": {},
"outputs": [],
@ -895,7 +895,7 @@
},
{
"cell_type": "code",
"execution_count": 50,
"execution_count": 21,
"id": "fecf9ee6-30f0-4219-b929-2546c3ae29a0",
"metadata": {},
"outputs": [
@ -917,7 +917,7 @@
},
{
"cell_type": "code",
"execution_count": 51,
"execution_count": 22,
"id": "21122087-8a85-4122-bda6-db2020d5d4c9",
"metadata": {},
"outputs": [
@ -939,7 +939,7 @@
},
{
"cell_type": "code",
"execution_count": 52,
"execution_count": 23,
"id": "e050dbd1-35f7-4458-8a57-ce936c6c5487",
"metadata": {},
"outputs": [
@ -961,17 +961,17 @@
},
{
"cell_type": "code",
"execution_count": 53,
"execution_count": 24,
"id": "5ee341f2-cb89-4fa0-aff2-f6fec4f24485",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.PairGrid at 0x1f4de3d0f50>"
"<seaborn.axisgrid.PairGrid at 0x115332e3e00>"
]
},
"execution_count": 53,
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
},
@ -992,7 +992,7 @@
},
{
"cell_type": "code",
"execution_count": 54,
"execution_count": 25,
"id": "c1c5e0c8-5289-476e-ab54-c7b34bb1e76d",
"metadata": {},
"outputs": [
@ -1030,7 +1030,7 @@
},
{
"cell_type": "code",
"execution_count": 55,
"execution_count": 26,
"id": "ad91b12f-f03e-4016-b523-661474693ae4",
"metadata": {},
"outputs": [],
@ -1041,7 +1041,7 @@
},
{
"cell_type": "code",
"execution_count": 56,
"execution_count": 27,
"id": "5911feb0-02de-4c97-b23f-3f7416570e7a",
"metadata": {},
"outputs": [
@ -1049,7 +1049,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"100%|████████████████████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 94.85it/s]\n"
"100%|████████████████████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 96.19it/s]\n"
]
}
],
@ -1060,7 +1060,7 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": 28,
"id": "35f88db4-4fef-4b2a-aa13-fd1431aa520a",
"metadata": {},
"outputs": [
@ -1068,7 +1068,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Загрузка: 100%|██████████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 95.46it/s]\n"
"Загрузка: 100%|██████████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 95.73it/s]\n"
]
}
],
@ -1079,7 +1079,7 @@
},
{
"cell_type": "code",
"execution_count": 58,
"execution_count": 29,
"id": "39c452bf-3c38-43af-8241-5a2ea041c41e",
"metadata": {},
"outputs": [
@ -1087,7 +1087,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Обработка строк: 50%|█████████████████████████████████▌ | 2/4 [00:00<00:00, 9.90it/s]"
"Обработка строк: 50%|█████████████████████████████████▌ | 2/4 [00:00<00:00, 9.88it/s]"
]
},
{
@ -1102,7 +1102,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Обработка строк: 100%|███████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 9.86it/s]"
"Обработка строк: 75%|██████████████████████████████████████████████████▎ | 3/4 [00:00<00:00, 9.86it/s]"
]
},
{
@ -1153,7 +1153,7 @@
},
{
"cell_type": "code",
"execution_count": 59,
"execution_count": 38,
"id": "03390937-9dcf-4a34-a186-1814662a3266",
"metadata": {},
"outputs": [],
@ -1166,31 +1166,19 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": 39,
"id": "506444de-4603-407c-b2cb-9af77ae253a1",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Index(['Date', 'Decimal Date', 'Average', 'Interpolated', 'Trend',\n",
" 'Number of Days'],\n",
" dtype='str')"
]
},
"execution_count": 67,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"co2_df = pd.read_csv(\"data/co2-mm-mlo.csv\")\n",
"co2_df.columns"
"\n",
"co2_df = co2_df.reset_index()"
]
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": 40,
"id": "776f5513-48bf-438a-afe6-cb51e4675610",
"metadata": {},
"outputs": [
@ -1222,104 +1210,79 @@
" <th>Trend</th>\n",
" <th>Number of Days</th>\n",
" <th>Extra</th>\n",
" <th>Year</th>\n",
" <th>Month</th>\n",
" <th>Decade</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1958-03-01</td>\n",
" <td>1958-03</td>\n",
" <td>1958.2027</td>\n",
" <td>315.71</td>\n",
" <td>314.44</td>\n",
" <td>-1</td>\n",
" <td>-9.99</td>\n",
" <td>-0.99</td>\n",
" <td>1958</td>\n",
" <td>3</td>\n",
" <td>1950</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1958-04-01</td>\n",
" <td>1958-04</td>\n",
" <td>1958.2877</td>\n",
" <td>317.45</td>\n",
" <td>315.16</td>\n",
" <td>-1</td>\n",
" <td>-9.99</td>\n",
" <td>-0.99</td>\n",
" <td>1958</td>\n",
" <td>4</td>\n",
" <td>1950</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1958-05-01</td>\n",
" <td>1958-05</td>\n",
" <td>1958.3699</td>\n",
" <td>317.51</td>\n",
" <td>314.69</td>\n",
" <td>-1</td>\n",
" <td>-9.99</td>\n",
" <td>-0.99</td>\n",
" <td>1958</td>\n",
" <td>5</td>\n",
" <td>1950</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1958-06-01</td>\n",
" <td>1958-06</td>\n",
" <td>1958.4548</td>\n",
" <td>317.27</td>\n",
" <td>315.15</td>\n",
" <td>-1</td>\n",
" <td>-9.99</td>\n",
" <td>-0.99</td>\n",
" <td>1958</td>\n",
" <td>6</td>\n",
" <td>1950</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1958-07-01</td>\n",
" <td>1958-07</td>\n",
" <td>1958.5370</td>\n",
" <td>315.87</td>\n",
" <td>315.20</td>\n",
" <td>-1</td>\n",
" <td>-9.99</td>\n",
" <td>-0.99</td>\n",
" <td>1958</td>\n",
" <td>7</td>\n",
" <td>1950</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Date Decimal Date Average Interpolated Trend Number of Days \\\n",
"0 1958-03-01 1958.2027 315.71 314.44 -1 -9.99 \n",
"1 1958-04-01 1958.2877 317.45 315.16 -1 -9.99 \n",
"2 1958-05-01 1958.3699 317.51 314.69 -1 -9.99 \n",
"3 1958-06-01 1958.4548 317.27 315.15 -1 -9.99 \n",
"4 1958-07-01 1958.5370 315.87 315.20 -1 -9.99 \n",
"\n",
" Extra Year Month Decade \n",
"0 -0.99 1958 3 1950 \n",
"1 -0.99 1958 4 1950 \n",
"2 -0.99 1958 5 1950 \n",
"3 -0.99 1958 6 1950 \n",
"4 -0.99 1958 7 1950 "
" Date Decimal Date Average Interpolated Trend Number of Days Extra\n",
"0 1958-03 1958.2027 315.71 314.44 -1 -9.99 -0.99\n",
"1 1958-04 1958.2877 317.45 315.16 -1 -9.99 -0.99\n",
"2 1958-05 1958.3699 317.51 314.69 -1 -9.99 -0.99\n",
"3 1958-06 1958.4548 317.27 315.15 -1 -9.99 -0.99\n",
"4 1958-07 1958.5370 315.87 315.20 -1 -9.99 -0.99"
]
},
"execution_count": 89,
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"columns = [\n",
"co2_df.columns = [\n",
" \"Date\",\n",
" \"Decimal Date\",\n",
" \"Average\",\n",
@ -1329,13 +1292,12 @@
" \"Extra\"\n",
"]\n",
"\n",
"\n",
"co2_df.head() # покажем первые 5"
]
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 41,
"id": "c3d5c3cc-68ce-4c28-82bb-87f0fdfdf824",
"metadata": {},
"outputs": [
@ -1533,7 +1495,7 @@
"9 -0.99 1958 12 1950 "
]
},
"execution_count": 81,
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
@ -1550,7 +1512,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 42,
"id": "21f9572e-fce2-4c63-bd67-5978a18d12a8",
"metadata": {},
"outputs": [
@ -1584,7 +1546,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 43,
"id": "f9efe5f4-10f6-4670-b446-cebbf99f784d",
"metadata": {},
"outputs": [
@ -1762,7 +1724,7 @@
"std 19.924418 "
]
},
"execution_count": 83,
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
@ -1773,7 +1735,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 44,
"id": "4a6814ba-49c0-492a-a942-5c77736c4e14",
"metadata": {},
"outputs": [
@ -1808,7 +1770,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 45,
"id": "5a82845e-7399-44d4-a23f-47cc76585e10",
"metadata": {},
"outputs": [
@ -1843,7 +1805,7 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": 46,
"id": "a40f208b-b51e-4ed5-ba2d-f6b9e0eb610a",
"metadata": {},
"outputs": [
@ -1870,7 +1832,7 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": 47,
"id": "2b61f427-d2e7-4a12-bc1e-4607bde4104d",
"metadata": {},
"outputs": [
@ -1901,7 +1863,7 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": 48,
"id": "5f483a8c-6fef-45f4-99c2-91290ed2c768",
"metadata": {},
"outputs": [
@ -1909,7 +1871,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Обработка CO2: 100%|██████████████████████████████████████████████████████████████| 816/816 [00:00<00:00, 27136.62it/s]\n"
"Обработка CO2: 100%|██████████████████████████████████████████████████████████████| 816/816 [00:00<00:00, 29822.26it/s]\n"
]
}
],