AIM-PIbd-32-Isaeva-A-I/Lab1.ipynb

165 lines
125 KiB
Plaintext
Raw Normal View History

2024-10-26 15:35:36 +04:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Лабораторная 1\n",
"### Вариант 7. Экономика стран\n",
"Выгрузка из csv."
]
},
{
"cell_type": "code",
"execution_count": 168,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Index(['stock index', 'country', 'year', 'index price', 'log_indexprice',\n",
" 'inflationrate', 'oil prices', 'exchange_rate', 'gdppercent',\n",
" 'percapitaincome', 'unemploymentrate', 'manufacturingoutput',\n",
" 'tradebalance', 'USTreasury'],\n",
" dtype='object')\n"
]
}
],
"source": [
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"\n",
"df = pd.read_csv(\".//csv//EconomicData.csv\")\n",
"print(df.columns)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Гистограмма уровня инфляции в США по годам.\n",
"Вывод: В начале 1980-х США столкнулись с проблемой бюджетного дефицита, которая была решена ближе к 1985 году. С 1990 по 2008 года процент инфляции оставался стабильным. С 2010 года США настроили курс, который позволил им снизить инфляцию в стране."
]
},
{
"cell_type": "code",
"execution_count": 177,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABRQAAAEpCAYAAADiTa6IAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAABOxklEQVR4nO3deVhV1f7H8Q+DgIjgDOIAWs4TjoSp6E8Si1KaNBsksrSblkaRwzVpMuw6pDfNoW56K72aldpgmqE2Sakg5ZyZpqmAVIJigsL6/eHDzhOgGwQcer+eZz911vnutdfaZ50tfFl7LydjjBEAAAAAAAAA2OB8qRsAAAAAAAAA4MpBQhEAAAAAAACAbSQUA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eXd7e3nrqqadUqVIlzZ07Vz179tTnn3+u4ODgQvW5u7vr9ddft16fO0sTAIBSMwAAXMXmz59vJJlNmzbZiuvYsaPJzc21yv/1r38ZSWbFihVW2cmTJwvtP2zYMOPp6WlOnTpljDHm1KlTpk6dOmbQoEFWzHfffWdcXFxMu3btTE5OjjHGmIyMDFO1alUzcuRIKy4qKsoEBARYr7dt22acnZ3NjTfeaCSZffv2We8FBASYqKgoY4wxc+fONZLMK6+8csHzYowxgwYNMv7+/iYvL88qS05ONpLM/PnzrbLQ0FAjyUydOtUqy8nJMUFBQaZOnTrW+Zo+fbqRZN5++20rLjc
"text/plain": [
"<Figure size 1600x300 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"srez = df.query('country == \"United States of America\"').sort_values(\"country\")\n",
"plt.figure(figsize=(16,3))\n",
"plt.bar(\n",
" srez[\"year\"],\n",
" srez[\"inflationrate\"]\n",
")\n",
"plt.title(\"График уровня инфляции в США с 1980 по 2020 год\")\n",
"plt.show()\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Выпуск продукции обрабатывающей промышленности В 2020 году\n",
"Вывод: в странах Европы обрабатывающая промышленность занимает второстепенную роль в специализации страны."
]
},
{
"cell_type": "code",
"execution_count": 185,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABKMAAAE8CAYAAAAc8nIgAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAABSrUlEQVR4nO3deVwV1eP/8TcgcJHNDUTTxH3ftXJFy0TTTDMrM/ctl1Izs8XSrE+lluZumklqZllpZrlgoqlZ7vuau6kp7huCcH5/+Lv3y+UCIsKQ+no+HvdRzJyZOWfumcF5M3PGzRhjBAAAAAAAAFjAPasrAAAAAAAAgPsHYRQAAAAAAAAsQx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ZMmaIuXbo4ppctW1aenp5av369smXLJkkaNGiQPvzwQ+3cuVOlSpXKjKYDwH2Jx/QA3PVy5MghHx8fxz8cJenQoUNyc3PTJ598kuJyQ4YMcforqySXxwATf+yPLhljFBoaqqeeesplnTExMQoMDFT37t2dpg0ZMkQlSpSQzWZTvnz59PTTT2v//v1OdY2IiHAsc+nSJVWtWlWFCxfWiRMnUm1/aGhoqvVO2r7evXvr66+/VsmSJWWz2VS1alX9/vvvLuvdtGmTGjdurICAAPn5+emxxx7Tn3/+mWwdOnTokOy2O3To4CjTvn175cmTR3FxcS7LN2zYUCVLlnSq55AhQxw/37hxQ0888YRy5cqlnTt3urQnqaZNm7o8atahQweXaUePHpWPj4/c3Nx06NAhx/TQ0FCnukvSnDlznPrBrUyYMEFly5aVt7e38ufPr169ejk9FrJnzx6dO3dO/v7+CgsLU/bs2RUYGKimTZs6Agg7e1/dvXu3nn32WQUEBCh37tzq06ePy+Mr06ZN06OPPqrg4GB5e3urTJkyLn/RX7dunRISEhQbG6tq1arJZrMpd+7cat26tY4cOeJUduvWrerQoYOKFCkim82mkJAQderUSWfOnHGpX2of+/hH9erVU7ly5VLcb8kdD0n7V86cOVWvXj2tXLnSadmffvpJTZo0Uf78+eXt7a2iRYvq/fffV3x8vFO55PrCZ599plKlSsnb21shISHq3r27zp4961Qmubp/8sknLv0nOjrapQ9LNx9D+uyzz1S2bFnZbDblzZtX3bt317lz55zK2fufh4eHKlasqIoVK+rHH39Mc//LynOC/XFqLy8vnT592mnemjVrHHVYv369Y3p6+4Sfn59Tue+//96pr0k3zx1ubm567bXX0ryfEi8v3bxbpk6dOvL19ZW/v7+aNGmiHTt2OJVJrj4p1Sml9ibXl6Rbn0vs/vrrLz3xxBPKmTOnfH19VaFCBY0ePdpRv1sdo/bt3un5L/F+dXd3V0hIiJ577jmXc0tSXl5eLkGUJLVo0UKStGvXLse0qKgonTlzRj179nQq26tXL125ckW//PKLY1pyd50mt86dO3dq586d6tatm9O/J3r27CljjL7//vtU65/cUAL2z7Fjxxzlli1b5uhPOXLk0FNPPeVUj8Tq1auX7PoSn1vCwsJUsWLFZJcvWbKkwsPDU603AGSVbLcuAgD/LRcuXFB0dLSMMTp16pTGjh2ry5cv68UXX8yQ9T/++ONq166d07RPP/3UccHo5uamF198UcOHD9fZs2eVK1cuR7mff/5ZFy9edNQlPj5eTZs21W+//abnn39effr00aVLlxQZGant27eraNGiLtuPi4tTy5YtdeTIEa1evVr58uW7ZZ0rVaqk/v37O02bPn26IiMjXcquWLFC3377rV555RV5e3trwoQJatSokdauXeu4QNqxY4fq1KmjgIAAvf766/L09NTnn3+uevXqacWKFXr44Ydd1uvt7a0vvvjC8XPivzZLUtu2bTV9+nQtXrzY6XHKkydPatmyZRo8eHCK7evSpYuWL1+uyMhIlSlT5pb7I63efffdFMciSezGjRt6++2307zeIUOG6L333lODBg3Uo0cP7dmzRxMnTtS6deu0evVqeXp6OsKcN998U8WLF9d7772nmJgYjR8/XrVq1dK6detUokQJp/U+++yzCg0N1UcffaQ///xTY8aM0blz5zR9+nRHmYkTJ6ps2bJq1qyZsmXLpp9//lk9e/ZUQkKCevXqJUmObffu3VtVq1bVxx9/rNOnT2vMmDFatWqVNm3apDx58kiSIiMjdeDAAXXs2FEhISHasWOHJk+erB07dujPP/+Um5ubnn76aRUrVsxRh379+ql06dLq1q2bY1rp0qXTvP+SkydPHo0aNUqSdOzYMY0ePVpPPPGEjh49qhw5cki6eTHo5+enV199VX5+flq2bJneffddXbx4USNGjEhx3R9++KHefvtt1a1bV7169dLBgwc1btw4/fXXX/rrr7/k7e19R3W36969u+MOz1deecWxnU2bNjn6RXJut/9JWX9O8PDw0MyZM9WvXz/HtGnTpslms6XpmLNKnTp1HP10165d+vDDD53mz5gxQ+3bt1d4eLiGDRumq1evauLEiapdu7Y2bdqU6eOrpeVcIt08Tps2bap8+fKpT58+CgkJ0a5du7RgwQL16dNH3bt3d9xVJN08H7do0UJPP/20Y1pQUFCydUhP/7Pv14SEBG3fvl2fffaZjh8/7hIgp8XJkyclyXFOkm4Go5Kc7pKWpKpVq8rd3V2bNm1K9d8Et7PO/Pnzq0CBAo75t2IfSiAx+78Tli5dqsaNG6tIkSIaMmSIrl27prFjx6pWrVrauHFjsv2pQIEC+uijjyTdfJSxR48eTvPbtm2rrl27avv27U4h57p167R3714NGjQoTfUGAMsZALhLTJs2zUhy+Xh7e5uIiAinsgcPHjSSzIgRI1Jc3+DBg03S06Ak06tXL5eyTZo0MYUKFXL8vGfPHiPJTJw40alcs2bNTGhoqElISDDGGPPll18aSWbkyJEu67SXsdd12rRpJiEhwbRp08Z
"text/plain": [
"<Figure size 1500x300 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"srez = df.query('year == 2020 and (country == \"France\" or country == \"Spain\" or country == \"Germany\" or country ==\"United Kingdom\")').sort_values(\"unemploymentrate\")\n",
"plt.figure(figsize=(15, 3))\n",
"sns.boxenplot(x = srez[\"unemploymentrate\"])\n",
"plt.title(\"Выпуск продукции обрабатывающей промышленности в 2020 году\")\n",
"plt.xlabel('Доля выпуска продукции обрабатывающей промышленности')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Уровень безработицы в странах на 2010 год\n",
"Вывод: в 2010 году безработице больше всего были подвержены США и страны Европы."
]
},
{
"cell_type": "code",
"execution_count": 211,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAqcAAAJFCAYAAADgaV6NAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAADFPUlEQVR4nOzdd3gUVdsG8Hu2p/eeQAqBhC5VelekiYgoFpoVsFN81U/FLopdQUEFLChKEVR6753QUkglvSebbLKbLXO+PyIrSwopu5ktz++6ckF2Z87cs8kmT86cc4ZjjDEQQgghhBBiBURCByCEEEIII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G20xOTmYKhYI98sgjJo+7uLiwOXPm1Nn+n3/+YQDYjh07Gs16q59Xf/75JwPA3nnnHZPHp06dyjiOYykpKSaP79q1iwFgGzZsMD42f/78Br8XCSENo8v6FvLoo49CJBJh1apVWL16NbRarUmP142eeOIJk57PuXPnQiKRGGf879mzB1qtFs8//7xJL8Hjjz8Od3d3/PPPPybt6XQ6FBcXo6ioCMePH8fmzZvRvXt3Y2/Gpk2bwPM8pk2bhuLiYuNHYGAgoqOjsX//fpP2DAaDyXbFxcWorq6u91yuH7ukpAR6vb5Zr9n8+fPh5ORk/Hz48OHo3bu38fxKS0uxb98+TJs2DZWVlcYsJSUluPPOO5GcnIycnByTNouLi5GdnY01a9YgJSUFQ4cOrfe4N3rmmWcAwGTFhRtzKZV
"text/plain": [
"<Figure size 1100x700 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"srez = df.query('unemploymentrate >= 0 and year == 2010').sort_values(\"country\")\n",
"plt.figure(figsize=(11,7))\n",
"plt.pie(\n",
" srez[\"unemploymentrate\"],\n",
" labels=srez[\"country\"],\n",
" autopct=\"%1.1f%%\",\n",
")\n",
"plt.title(\"Уровень безработицы в странах на 2020 год\")\n",
"plt.show()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "aim",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}