AIM-PIbd-32-Safiulova-K-N/lab_1/lab_1.ipynb

158 lines
224 KiB
Plaintext
Raw Normal View History

2024-09-14 10:40:12 +04:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Начало лабораторной\n",
"\n",
"Выгрузка данных их csv файла в датафрейм"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Index(['Rank ', 'Name', 'Networth', 'Age', 'Country', 'Source', 'Industry'], dtype='object')\n"
]
}
],
"source": [
"import pandas as pd \n",
"df = pd.read_csv(\"..//static//csv//Forbes Billionaires.csv\")\n",
"print(df.columns)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA1IAAAIjCAYAAAAJLyrXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAABk+klEQVR4nO3de3zO9f/H8ed12Xlss2Ezh5nzFMuhGH1VDEkhSk5ZVPpq5NDRt+RUiU4K0ZH6iorSQUUjh8ocEossqTBnhpnDTnZ9fn/47vq5bNjHrst1jcf9dtvNrs/nfX0+r+u1zzXXc5+TxTAMQwAAAACAYrO6uwAAAAAAKG0IUgAAAABgEkEKAAAAAEwiSAEAAACASQQpAAAAADCJIAUAAAAAJhGkAAAAAMAkghQAAAAAmESQAgAAAACTCFIAAAAAYBJBCoDTzZo1SxaLxf7l5+enunXravDgwTpw4IC7ywMAACgxL3cXAODKNW7cOEVHRys7O1s//fSTpk+frm+//VabN29WQECAu8sDAAC4ZAQpAC7TsWNHNWvWTJL0wAMPKCwsTK+++qq+/PJL9erVy83VAQAAXDoO7QNw2bRp00aStH37dknSkSNH9Nhjj6lhw4YqW7asgoKC1LFjR6WkpBR6bnZ2tsaMGaO6devKz89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9td2NpvNps6dO+unn37SwIEDFRMTo02bNum1117Tn3/+WegDfVHq16+vp59+WoZh6O+//9arr76q2267TWlpafYxDzzwgD744APdddddevTRR7VmzRpNmDBBqamphfoxcOBARUREaO/evZo6dari4+O1fft2h8NKV6xYoU8++USPPPKIfH199eabb+rWW2/V2rVrde2110qS1q1bp1WrVqlnz56qWrWqduzYoenTp+vmm2/Wli1b7Ms7ceKE/vWvfyk1NVUDBgxQkyZNlJ6erq+++kq7d+9WTEyM/vvf/9rX/fbbbys1NVWvvfaafVqjRo1MrfNC/Pz8NHPmTHXt2tU+7fPPP1d2dvZFnytJr7zyykXPabzYNnm2s1/78OHDL3n98+bN06lTpzRo0CCFhYVp7dq1mjJlinbv3q158+Y5jM3Pz9ett96qFi1aaNKkSVq0aJFGjx6t06dPa9y4cUWut+CQ5IIazg09v//+u1q1aqUqVaroqaeeUmBgoD799FN17dpVn332me68806H8YMHD1ZISIjGjBmjrVu3avr06dq5c6c9WEtnguTYsWMVHx+vQYMG2cetW7eu0Hu3OO8TAJeJAQBONnPmTEOSsWTJEuPQoUPGrl27jI8//tgICwsz/P39jd27dxuGYRjZ2dlGfn6+w3O3b99u+Pr6GuPGjbNPe//99w1JxquvvlpoXTabzf48ScZLL71UaMw111xj3HTTTfbHy5YtMyQZVapUMTIzM+3TP/30U0OS8frrr9uXXadOHaNDhw729RiGYZw6dcqIjo422rVrV2hdLVu2NK699lr740OHDhmSjNGjR9un7dixwyhTpozx/PPPOzx306ZNhpeXV6Hp27ZtMyQZH3zwgX3a6NGjjbN/hf/444+GJOOjjz5yeO6iRYsKTY+KijI6depUqPbExETj3P8Wzq39iSeeMCpVqmQ0bdrUoaf//e9/DavVavz4448Oz58xY4Yhyfj5558Lre9sN910k8PyDMMw/vOf/xiSjIMHDxqGYRgbN240JBkPPPCAw7jHHnvMkGT88MMP511+wc/2l19+cXht507buXOn4efnZ9x55532aadOnSq0vOTkZEOS8eGHH9qnPfvss4Yk4/PPPy80/uztp0BCQoIRFR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scViUe3ate3noWzbtk2SlJCQcN5lHDt2TOX
"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, color='orange', edgecolor='black')\n",
"plt.title('Распределение возраста миллиардеров')\n",
"plt.xlabel('Возраст')\n",
"plt.ylabel('Количество миллиардеров')\n",
"plt.grid(True)\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Данная диаграмма показывает распределение возраста миллиардеров. Это помогает понять, в каком возрасте чаще всего становятся миллиардерами."
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA00AAAJhCAYAAACdGlvVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAAC6b0lEQVR4nOzddXQU9/fw8btIEgIRIAkQCASCayG4SwgetBTXYkWKlSKlWClSwUvhi7bFipe2uBdpKU5xirsHDZL7/MGz88uSsGTDJruF9+ucnJOdmZ25O37nI2NSVRUAAAAAQIwSOToAAAAAAHBmJE0AAAAAYAVJEwAAAABYQdIEAAAAAFaQNAEAAACAFSRNAAAAAGAFSRMAAAAAWEHSBAAAAABWkDQBAAAAgBUkTQAAwK7Onz8vbm5usm3bNkeHgnfUqlWrJEWKFHL9+nVHh4K3BEkT3imzZs0Sk8kkf//9d7Rx//vf/8RkMkmdOnXk+fPnDogOAN4OQ4cOlWLFikmpUqUcHYrTO3bsmPTo0UNKliwpbm5uYjKZ5MyZM6+c/pdffpFChQqJm5ubZMyYUQYNGiTPnj2LNt2dO3ekffv24uvrK8mTJ5cKFSrInj174vGXOJeqVatK1qxZZcSIEY4OBW8JkiZARJYuXSqdOnWSMmXKyPz58yVx4sSODgkA/pO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d+/ePfX29tZ27dpZTHflyhX18vKyGB7bdWs+n8ycOdNinv7+/lq9enXjs3l/j2m7R/0
"text/plain": [
"<Figure size 1000x600 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"df_top100 = df.head(100)\n",
"\n",
"# Группировка по стране и подсчет количества миллиардеров в каждой стране\n",
"country_counts = df_top100['Country'].value_counts()\n",
"\n",
"plt.figure(figsize=(10, 6))\n",
"country_counts.plot(kind='bar', color='skyblue')\n",
"plt.title('Количество миллиардеров по странам (первые 100 строк)')\n",
"plt.xlabel('Страна')\n",
"plt.ylabel('Количество миллиардеров')\n",
"plt.xticks(rotation=45)\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Столбчатая диаграмма показывает количество миллиардеров в каждой стране для первых 100 строк датасета. Это позволяет наглядно увидеть, в каких странах больше всего миллиардеров в этом срезе данных.\n",
"Данная диаграмма отображает количество миллиардеров в каждой стране для первых 100 строк датасета, что позволяет наглядно увидеть, в каких странах больше всего миллиардеров в этом срезе данных.\""
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA0kAAAKSCAYAAAAH95AYAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8hTgPZAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzdd3xN9//A8dfN3hIREoRYMWJTWnsWtUeVpjVqtTVK7W9rlio1WtRoEbvUpjYVW22CCCIRJEiQyB73nt8f+eU2VzY3ucH7+XjcB/eMz+d9T25uzvt+lkpRFAUhhBBCCCGEEAAYGToAIYQQQgghhMhPJEkSQgghhBBCiFQkSRJCCCGEEEKIVCRJEkIIIYQQQohUJEkSQgghhBBCiFQkSRJCCCGEEEKIVCRJEkIIIYQQQohUJEkSQgghhBBCiFQkSRJCCCGEEEKI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SUbZsWQIDAwG4ffs2AL17986wjIiICBwcHLTPw8LC0pT7stu3b6MoSobHvdwtLjw8HCBNYvJymREREdpuai978uSJzvMDBw7g5OSUaZwvmzRpEkWLFmXQoEFs3rw5Tf2+vr4Zlvly/Rnx9PRkzJgxnD17lsKFC+Pt7c3SpUs5ceJEpueNGzeOhg0b0q5dO4YMGZLuMeHh4ZQsWTLLGLJzvXNSf3bf5ymyel+mCAsLA6BAgQKZxpbTn01670t3d3diYmIIDQ0FICYmhvLly6c5rmLFimg0Gu7fv4+Hh4d2e82aNbX/Nzc3Z+HChel2VX0VoaGhOY4
"text/plain": [
"<Figure size 800x800 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"industry_counts = df['Industry'].value_counts()\n",
"\n",
"plt.figure(figsize=(8, 8))\n",
"plt.pie(industry_counts, labels=industry_counts.index, autopct='%1.1f%%', startangle=140)\n",
"plt.title('Распределение миллиардеров по отраслям')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Данная диаграмма отображает процентное соотношение миллиардеров по отраслям."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "aimenv",
"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
}