AIM-PIbd-31-LOBASHOV-I-D/lab_1/lab_1.ipynb

181 lines
131 KiB
Plaintext
Raw Normal View History

2024-09-14 12:36:22 +04:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Начало лабораторной работы"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" Name Networth Age Country \\\n",
"Rank \n",
"1 Elon Musk 219.0 50 United States \n",
"2 Jeff Bezos 171.0 58 United States \n",
"3 Bernard Arnault & family 158.0 73 France \n",
"4 Bill Gates 129.0 66 United States \n",
"5 Warren Buffett 118.0 91 United States \n",
"... ... ... ... ... \n",
"2578 Jorge Gallardo Ballart 1.0 80 Spain \n",
"2578 Nari Genomal 1.0 82 Philippines \n",
"2578 Ramesh Genomal 1.0 71 Philippines \n",
"2578 Sunder Genomal 1.0 68 Philippines \n",
"2578 Horst-Otto Gerberding 1.0 69 Germany \n",
"\n",
" Source Industry \n",
"Rank \n",
"1 Tesla, SpaceX Automotive \n",
"2 Amazon Technology \n",
"3 LVMH Fashion & Retail \n",
"4 Microsoft Technology \n",
"5 Berkshire Hathaway Finance & Investments \n",
"... ... ... \n",
"2578 pharmaceuticals Healthcare \n",
"2578 apparel Fashion & Retail \n",
"2578 apparel Fashion & Retail \n",
"2578 garments Fashion & Retail \n",
"2578 flavors and fragrances Food & Beverage \n",
"\n",
"[2600 rows x 6 columns]\n"
]
}
],
"source": [
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"\n",
"df = pd.read_csv(\"..\\\\static\\\\csv\\\\Forbes Billionaires.csv\", index_col=\"Rank \")\n",
"\n",
"print(df)\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA1IAAAIjCAYAAAAJLyrXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6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hISFasGBBhf3nBpyOHTvqX//6l0PbzJkz9dFHH1W4fVpamubNm6f58+dX+K5VWVmZ2rRpo5deeqnC7cPDw89b+1lt27bViy++KEk6cuSIZsyYoVtuuUXffvutw7lf6N2dBx54QF26dNGvv/6ql19+Wf369dPGjRsVEBBwQdufNXz4cM2dO1cjR46UzWZTQECALBaL+vfvX23XqTOOCQAXgiAFAC5gyZIluvXWW/XWW285tOfm5tof55KkZs2aafPmzSopKamSBRPOOnvH6SzDMPTTTz/ZX/g/u4iFv7+/4uLi/nR/3333nUpKSv4wPJ7dr2EYioyMLPeoWUV2794ti8Wili1b/uE+V69erU6dOjk8FnY+9erVK3dOf7QgxNixY9W+fXv99a9/Pe/xv/vuO3Xp0qXSj1vWrVvXoaZbbrlFYWFhmjt3rsaOHauIiAiVlZVp7969io6Oto/LyspSbm6uIiIiHPYXFRVlv3sVFxenxo0ba+HChQ6Lf5x7DUjSjz/+qNq1a9vD55IlS5SYmGgPedJvj3CevVP4+zk4d5XByrrQYwLApcY7UgDgAmrVquXwyJL027s2Bw8edGjr16+fcnJyNHPmzHL7OHd7M9555x2dOHHC/n3
"text/plain": [
"<Figure size 1000x600 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.figure(figsize=(10, 6))\n",
"plt.hist(df['Age'], bins=10, edgecolor='black')\n",
"plt.title('Распределение возраста')\n",
"plt.xlabel('Возраст')\n",
"plt.ylabel('Количество')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Данная диаграмма отображает распределение возраста среди участников датасета, что позволяет сделать вывод о том, что большинство участников находятся в возрастной группе 30-50 лет."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfIAAAH4CAYAAACxCm+2AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliL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P//8s8b548aNqzH47MMPP9S8D5pSJgCMGjUKIpEIe/bswfr16zFlyhStL9aENAYlcqJlx44dGDhwYI3aR3FxMZydnTW/BwYG4tKlS1AoFHoZsHXf/Rr3fSzLIjExEZ06ddLcFwBsbW0xZMiQBsuLiYmBQqGo98vL/XJZloW/v7+m9laf27dvg2GYGrXQR8s8duwY+vTpo9XkWhdnZ+caz6m+AWnvv/8+unTpgueee67O+8fExGDw4MHN6u5oyP1aaXx8vFZNWC6XIyUlpd5/JxcXF9ja2uLmzZt6i0etViM5OVnr3/HOnTsAoBllvnPnTkgkEhw+fFire+R+M/ejvL29azyP7777TiuR61omAAgEArz00kv47LPPcOvWLfz++++Nf6KE/Ie++hEtfD6/xjSd7du3IyMjQ+vYhAkTkJ+fjx9//LFGGY9er4tNmzahrKxM8/uOHTuQlZWFESNGAAC6deuGwMBAfP311ygvL69xfV5eXo3Y+Xx+rVO7Hvb000+Dz+fj448/rhE/y7IoKCjQ/K5UKrFz50707Nmz3qb1iRMnQqVS4dNPP63xmFKpbPTUrNpcuHABe/fuxRdffFFnkp44cSIyMjLw66+
"text/plain": [
"<Figure size 1000x600 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"subset_df = df.iloc[0:30]\n",
"country_counts = subset_df['Country'].value_counts()\n",
"plt.figure(figsize=(10, 6))\n",
"plt.pie(country_counts, labels=country_counts.index, autopct='%1.1f%%', startangle=140)\n",
"plt.title('Распределение по странам')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Данная диаграмма отображает распределение участников по странам (срез данных от 1 до 30 строки), что позволяет сделать вывод о том, что большинство участников происходят из США"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA2cAAAIjCAYAAACH9WOrAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXR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+0vjZZ5/pyiuvVLly5bRjxw69+uqrat68udauXauEhARJUm5uri655BLNnDlT11xzjW6//XYdPHhQ06dP1+rVq1WhQgVnHtdee606derkMd9hw4YVWJ5HHnlELpdLQ4cO1c6dO/Xss8+qTZs2SktLU3BwsCRp1qxZ6tixo+rVq6fhw4fLx8dH48ePV6tWrTRv3jxddNFF+aZbunRpjRkzRpJ06NAhDRw4sMB5P/jgg7rqqqt00003adeuXXrhhRfUrFkzLV++XFFRUfnG6d+/vy6++GJJ0qeffqopU6Z49B8wYIAmTJig66+/XrfddpsyMjL04osvavny5Zo/f778/f0LXA9nY//+/c6ynSgvL09dunTRDz/8oP79+6tq1apatWqVnnnmGf3yyy/67LPP/nLaJ643t6+//loffPCBR7cRI0Zo5MiRatOmjQYOHKj09HS9/PLLWrJkyV8u55o1a3TxxRcrIiJC9957r/z9/fXqq6+qRYsWmjt3rho2bKhmzZrp3XffdcZ55JFHJEn333+/061x48bO37m5uerQoYMaNWqksWPHatq0aRo+fLiOHTumUaNGOcM999xz6tKli3r27Kns7GxNmjRJV155pb788kt17tzZGW7kyJEaMWKEGjdurFGjRikgIECLFy/WrFmz1K5du3zL9L///U9Vq1aVJL322mvavHmzR9m6dOmiTZs26Y477lClSpXkcrmcZTpZUFCQxo8fr+eee87p9vbbbysgIEBHjx495XoFgCJlAIBTGj9+vEmyGTNm2K5du2zLli02adIkK168uAUHB9vvv/9uZmZHjx613Nxcj3EzMjIsMDDQRo0a5XR76623TJI9/fTT+eaVl5fnjCfJnnjiiXzDVKtWzZo3b+78P3v2bJNkpUqVsszMTKf7Rx99ZJLsueeec6adnJxs7du3d+ZjZvbnn39auXLlrG3btvnm1bhxY6tevbrz/65du0ySDR8+3Om2ceNG8/X1tUceecRj3FWrVpmfn1++7uvXrzdJ9vbbbzvdhg8fbicejubNm2eS7P333/cYd9q0afm6JyUlWefOnfOVfdCgQXbyIe7kst97770WExNj9erV81in7777rvn4+Ni8efM8xn/llVdMks2fPz/f/E7UvHlzq1at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8vTli1bVK1atbMqk4+Pj0fYk6RKlSpJkse7cl9++aUefvhhpaWlebyHd2Lo2rBhg3x8fJSSkvKX8z2T7aJy5coqVqyYnnrqKaWkpDiPNebk5BQ4vL+/v3r16qW33npL3bt311tvvaVu3bopIiLiL8sDAEWFcAYAZ+Ciiy5yWmssyKOPPqoHH3xQN9xwg0aPHq3o6Gj5+PjojjvuyHdHqii4y/DEE0+odu3aBQ5z4olxdna2tm3bprZt2/7ldF0ul7755hv5+vqedpqStH37dklSXFzcaacZExOj999/v8D+J4emhg0b6uGHH/bo9uKLL2rq1KkFjr9u3TpNmDBB7733XoHvdOXl5alGjRp6+umnCxw/MTHxlGW/EMybN09dunRRs2bN9NJLLyk+Pl7+/v4aP368Jk6cWKhpnsl2ERYWpg8//FA33HCDmjZt6tHvVCH0hhtuUJ06dZSenq7Jkyc7d9EAwFsRzgDgPPj444/VsmVLvfnmmx7d9+/frxIlSjj/V6hQQYsXL1ZOTs55adTCzX1nzM3M9Ouvv6pmzZrOfCUpIiJCbdq0+cvprVixQjk5OacNpO7pmpnKlSv
"text/plain": [
"<Figure size 1000x600 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"industry_counts = df['Industry'].value_counts()\n",
"plt.figure(figsize=(10, 6))\n",
"plt.bar(industry_counts.index, industry_counts.values, color='skyblue')\n",
"plt.title('Распределение по отраслям')\n",
"plt.xlabel('Отрасль')\n",
"plt.ylabel('Количество')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Данная диаграмма отображает распределение участников по отраслям"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}