billionaries-wizualizacja/EDA_Billionaires .ipynb

682 lines
1.2 MiB
Plaintext
Raw Normal View History

2024-04-09 19:53:24 +02:00
{
"cells": [
{
"cell_type": "markdown",
"id": "c3968b76-b939-4c1c-9b84-29e51f8ae69f",
"metadata": {},
"source": [
"# Statystyki miliarderów\n",
"**Zbiór danych zawiera statystyki dotyczące miliarderów na świecie, zawarte są również ich dane osobowe, branże którymi się zajmują oraz firmy.**\n",
"\n",
"[Źródło](https://www.kaggle.com/datasets/nelgiriyewithana/billionaires-statistics-dataset)"
]
},
2024-04-09 21:36:47 +02:00
{
"cell_type": "markdown",
"id": "79451718",
"metadata": {},
"source": [
"# Potencjalne wykresy\n",
"* Analiza rozkładu majątku: Zbadanie rozkład majątku miliarderów w różnych branżach, krajach i regionach.\n",
"\n",
"* Analiza demograficzna: Przedstawienie wieku, płeci i miejsca urodzenia miliarderów.\n",
"\n",
"* Samodzielnie wytworzone vs. odziedziczone bogactwo: Analiza odseteku samodzielnie stworzonych miliarderów i tych, którzy odziedziczyli swój majątek.\n",
"\n",
"* Wskaźniki ekonomiczne: Zbadanie korelacji między bogactwem miliarderów a wskaźnikami ekonomicznymi, takimi jak PKB, CPI (wskaźnik cen towarów i usług) i stawki podatkowe.\n",
"\n",
"* Analiza geoprzestrzenna: Wizualizacja geograficznego rozmieszczenia miliarderów i ich majątku na mapie.\n",
"\n",
"* Trendy w czasie: Prześledzenie zmian demograficznych i majątkowych miliarderów na przestrzeni lat.\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "081ecfe0",
"metadata": {},
"source": [
"# Wykresy testowe oraz przedstawienie zbioru danych"
]
},
2024-04-09 19:53:24 +02:00
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 24,
2024-04-09 19:53:24 +02:00
"id": "cb8f7a05-40a5-46cf-8900-88da58e8690f",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np # linear algebra\n",
"import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n",
"import seaborn as sns\n",
"import matplotlib.pyplot as plt\n",
2024-04-09 21:36:47 +02:00
"import matplotlib.image as mpimg\n",
2024-04-09 19:53:24 +02:00
"from matplotlib.ticker import FormatStrFormatter, StrMethodFormatter\n",
"plt.style.use('ggplot')"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 25,
2024-04-09 19:53:24 +02:00
"id": "5a5c0cd6-6606-4983-b945-eeed8b5afe24",
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv('data.csv')"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 26,
2024-04-09 19:53:24 +02:00
"id": "4b91bc35-5308-49fc-954e-dc278d133c36",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>rank</th>\n",
" <th>finalWorth</th>\n",
" <th>category</th>\n",
" <th>personName</th>\n",
" <th>age</th>\n",
" <th>country</th>\n",
" <th>city</th>\n",
" <th>source</th>\n",
" <th>industries</th>\n",
" <th>countryOfCitizenship</th>\n",
" <th>...</th>\n",
" <th>cpi_change_country</th>\n",
" <th>gdp_country</th>\n",
" <th>gross_tertiary_education_enrollment</th>\n",
" <th>gross_primary_education_enrollment_country</th>\n",
" <th>life_expectancy_country</th>\n",
" <th>tax_revenue_country_country</th>\n",
" <th>total_tax_rate_country</th>\n",
" <th>population_country</th>\n",
" <th>latitude_country</th>\n",
" <th>longitude_country</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>211000</td>\n",
" <td>Fashion &amp; Retail</td>\n",
" <td>Bernard Arnault &amp; family</td>\n",
" <td>74.0</td>\n",
" <td>France</td>\n",
" <td>Paris</td>\n",
" <td>LVMH</td>\n",
" <td>Fashion &amp; Retail</td>\n",
" <td>France</td>\n",
" <td>...</td>\n",
" <td>1.1</td>\n",
" <td>$2,715,518,274,227</td>\n",
" <td>65.6</td>\n",
" <td>102.5</td>\n",
" <td>82.5</td>\n",
" <td>24.2</td>\n",
" <td>60.7</td>\n",
2024-04-09 21:36:47 +02:00
" <td>67059887.0</td>\n",
2024-04-09 19:53:24 +02:00
" <td>46.227638</td>\n",
" <td>2.213749</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2</td>\n",
" <td>180000</td>\n",
" <td>Automotive</td>\n",
" <td>Elon Musk</td>\n",
" <td>51.0</td>\n",
" <td>United States</td>\n",
" <td>Austin</td>\n",
" <td>Tesla, SpaceX</td>\n",
" <td>Automotive</td>\n",
" <td>United States</td>\n",
" <td>...</td>\n",
" <td>7.5</td>\n",
" <td>$21,427,700,000,000</td>\n",
" <td>88.2</td>\n",
" <td>101.8</td>\n",
" <td>78.5</td>\n",
" <td>9.6</td>\n",
" <td>36.6</td>\n",
2024-04-09 21:36:47 +02:00
" <td>328239523.0</td>\n",
2024-04-09 19:53:24 +02:00
" <td>37.090240</td>\n",
" <td>-95.712891</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>3</td>\n",
" <td>114000</td>\n",
" <td>Technology</td>\n",
" <td>Jeff Bezos</td>\n",
" <td>59.0</td>\n",
" <td>United States</td>\n",
" <td>Medina</td>\n",
" <td>Amazon</td>\n",
" <td>Technology</td>\n",
" <td>United States</td>\n",
" <td>...</td>\n",
" <td>7.5</td>\n",
" <td>$21,427,700,000,000</td>\n",
" <td>88.2</td>\n",
" <td>101.8</td>\n",
" <td>78.5</td>\n",
" <td>9.6</td>\n",
" <td>36.6</td>\n",
2024-04-09 21:36:47 +02:00
" <td>328239523.0</td>\n",
2024-04-09 19:53:24 +02:00
" <td>37.090240</td>\n",
" <td>-95.712891</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4</td>\n",
" <td>107000</td>\n",
" <td>Technology</td>\n",
" <td>Larry Ellison</td>\n",
" <td>78.0</td>\n",
" <td>United States</td>\n",
" <td>Lanai</td>\n",
" <td>Oracle</td>\n",
" <td>Technology</td>\n",
" <td>United States</td>\n",
" <td>...</td>\n",
" <td>7.5</td>\n",
" <td>$21,427,700,000,000</td>\n",
" <td>88.2</td>\n",
" <td>101.8</td>\n",
" <td>78.5</td>\n",
" <td>9.6</td>\n",
" <td>36.6</td>\n",
2024-04-09 21:36:47 +02:00
" <td>328239523.0</td>\n",
2024-04-09 19:53:24 +02:00
" <td>37.090240</td>\n",
" <td>-95.712891</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5</td>\n",
" <td>106000</td>\n",
" <td>Finance &amp; Investments</td>\n",
" <td>Warren Buffett</td>\n",
" <td>92.0</td>\n",
" <td>United States</td>\n",
" <td>Omaha</td>\n",
" <td>Berkshire Hathaway</td>\n",
" <td>Finance &amp; Investments</td>\n",
" <td>United States</td>\n",
" <td>...</td>\n",
" <td>7.5</td>\n",
" <td>$21,427,700,000,000</td>\n",
" <td>88.2</td>\n",
" <td>101.8</td>\n",
" <td>78.5</td>\n",
" <td>9.6</td>\n",
" <td>36.6</td>\n",
2024-04-09 21:36:47 +02:00
" <td>328239523.0</td>\n",
2024-04-09 19:53:24 +02:00
" <td>37.090240</td>\n",
" <td>-95.712891</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
2024-04-09 21:36:47 +02:00
"<p>5 rows × 35 columns</p>\n",
2024-04-09 19:53:24 +02:00
"</div>"
],
"text/plain": [
2024-04-09 21:36:47 +02:00
" rank finalWorth category personName age \\\n",
"0 1 211000 Fashion & Retail Bernard Arnault & family 74.0 \n",
"1 2 180000 Automotive Elon Musk 51.0 \n",
"2 3 114000 Technology Jeff Bezos 59.0 \n",
"3 4 107000 Technology Larry Ellison 78.0 \n",
"4 5 106000 Finance & Investments Warren Buffett 92.0 \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
" country city source industries \\\n",
"0 France Paris LVMH Fashion & Retail \n",
"1 United States Austin Tesla, SpaceX Automotive \n",
"2 United States Medina Amazon Technology \n",
"3 United States Lanai Oracle Technology \n",
"4 United States Omaha Berkshire Hathaway Finance & Investments \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
" countryOfCitizenship ... cpi_change_country gdp_country \\\n",
"0 France ... 1.1 $2,715,518,274,227 \n",
"1 United States ... 7.5 $21,427,700,000,000 \n",
"2 United States ... 7.5 $21,427,700,000,000 \n",
"3 United States ... 7.5 $21,427,700,000,000 \n",
"4 United States ... 7.5 $21,427,700,000,000 \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
" gross_tertiary_education_enrollment \\\n",
"0 65.6 \n",
"1 88.2 \n",
"2 88.2 \n",
"3 88.2 \n",
"4 88.2 \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
" gross_primary_education_enrollment_country life_expectancy_country \\\n",
"0 102.5 82.5 \n",
"1 101.8 78.5 \n",
"2 101.8 78.5 \n",
"3 101.8 78.5 \n",
"4 101.8 78.5 \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
" tax_revenue_country_country total_tax_rate_country population_country \\\n",
"0 24.2 60.7 67059887.0 \n",
"1 9.6 36.6 328239523.0 \n",
"2 9.6 36.6 328239523.0 \n",
"3 9.6 36.6 328239523.0 \n",
"4 9.6 36.6 328239523.0 \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
" latitude_country longitude_country \n",
"0 46.227638 2.213749 \n",
"1 37.090240 -95.712891 \n",
"2 37.090240 -95.712891 \n",
"3 37.090240 -95.712891 \n",
"4 37.090240 -95.712891 \n",
2024-04-09 19:53:24 +02:00
"\n",
2024-04-09 21:36:47 +02:00
"[5 rows x 35 columns]"
2024-04-09 19:53:24 +02:00
]
},
2024-04-09 21:36:47 +02:00
"execution_count": 26,
2024-04-09 19:53:24 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2024-04-09 21:36:47 +02:00
"df.head()"
2024-04-09 19:53:24 +02:00
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 27,
2024-04-09 19:53:24 +02:00
"id": "165adea3-3cf5-44e7-9555-2dbebd7b824c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"rank 0\n",
"finalWorth 0\n",
"category 0\n",
"personName 0\n",
"age 65\n",
"country 38\n",
"city 72\n",
"source 0\n",
"industries 0\n",
"countryOfCitizenship 0\n",
"organization 2315\n",
"selfMade 0\n",
"status 0\n",
"gender 0\n",
"birthDate 76\n",
"lastName 0\n",
"firstName 3\n",
"title 2301\n",
"date 0\n",
"state 1887\n",
"residenceStateRegion 1893\n",
"birthYear 76\n",
"birthMonth 76\n",
"birthDay 76\n",
"cpi_country 184\n",
"cpi_change_country 184\n",
"gdp_country 164\n",
"gross_tertiary_education_enrollment 182\n",
"gross_primary_education_enrollment_country 181\n",
"life_expectancy_country 182\n",
"tax_revenue_country_country 183\n",
"total_tax_rate_country 182\n",
"population_country 164\n",
"latitude_country 164\n",
"longitude_country 164\n",
"dtype: int64"
]
},
2024-04-09 21:36:47 +02:00
"execution_count": 27,
2024-04-09 19:53:24 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.isnull().sum()"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 28,
2024-04-09 19:53:24 +02:00
"id": "603f6bb5-366d-4978-bafd-c260983caace",
"metadata": {},
"outputs": [
{
"data": {
2024-04-09 21:36:47 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAugAAAHMCAYAAACHj10tAAAAOXRFWHRTb2Z0d2FyZQBNYXRwb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HR2dZAvI6Oho/Pz8LMpKlSqV7Mf1e/bsAbDo/6EqVapga2v7xNg3btxIx44dCQkJYeXKlWTLlu2J7e/evctff/2Fp6cno0ePTraNo6PjY9dPp0bp0qWTxO/v7w9AwYIFyZ49u0Wdra0tPj4+nDt3Lklfabnmj9q9ezcJCQnUrFkz2e9DhQoVgP/3/UiNl156KUlZ7ty5gQfLPv4dw+O2boyLiwNI0bV/GGetWrWS1NnZ2VGtWjXOnDnD3r17CQoKonr16gQEBDB8+HD27NnDG2+8QWhoaLLfoz179mBjY5PsPQfVq1fH1taWvXv3JqkLCgoyltQ8qkaNGnz55ZcWx+TKlYuwsDBmzZrFtm3bqFy5MgBTpkwBoFOnTk+9BiJPogRdRCSDvPzyyzRu3JjFixezYMECmjZtmmy7U6dOUaFCBa5du0bVqlV59dVXyZEjB7a2tpw5c4aZM2em6uYyHx+fZMt9fX0BLG7WHDNmDD179iRnzpzUqVOHoKAgnJ2dMZlMLFu2jL/++ivZcz/s698e9p1cDHZ2dk/c1ebIkSO88847uLi4sHr1ary9vR8/yP/ftWvXMJvNXL58OVU35aZFctscPlzX/rgtEO3s7IxE9aG0XvNHXblyBXiw3easWbOe2i413N3dkx0HQEJCQpK+d+/eze7dux/b3+3bt596zoc/N49
2024-04-09 19:53:24 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ax = sns.barplot(df.head(10), x='finalWorth',y='personName', hue = 'personName', legend = False,orient='h', palette='rainbow')\n",
"ax.set_title('Najbardziej majętne osoby')\n",
"ax.set_xlabel('Osoba')\n",
"ax.set_ylabel('Majątek')\n",
"for container in ax.containers:\n",
" ax.bar_label(container, fontsize=8)\n",
"plt.show()"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 29,
2024-04-09 19:53:24 +02:00
"id": "d9aa8a3c-4bed-48d3-87db-2356f44b381c",
"metadata": {},
"outputs": [],
"source": [
"ppl_in_countries = df.groupby('countryOfCitizenship')['rank'].count().reset_index().sort_values(by ='rank',ascending=False).head(20)"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 30,
2024-04-09 19:53:24 +02:00
"id": "7c9dbf33-76b6-4f7b-a355-d81e352d7859",
"metadata": {},
"outputs": [
{
"data": {
2024-04-09 21:36:47 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAApQAAAHNCAYAAACgpuueAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAC0Q0lEQVR4nOzdd3xP1//A8dcnyScbSSRkkGUHaWwlRoUvJbYGVSNF1eiXohTVpgtB1UqNamtWktqktFbMGrVjxEyJJCJIkIis+/vDL5+vT5OQSOST8X4+Hh5y7z333Pe5+STezjn3XJWiKApCCCGEEEK8Ij1dByCEEEIIIYo3SSiFEEIIIUS+SEIphBBCCCHyRRJKIYQQQgiRL5JQCiGEEEKIfJGEUgghhBBC5IsklEIIIYQQIl8koRRCCCGEEPkiCaUQQgghhMgXSSiFEEIIUSz1798fY2Nj9uzZo+tQSj1JKIUo5UJDQ1GpVPj5+ek6lAK1fPlyVCoVy5cvL9B6/fz8UKlUhIaG5queQYMGoVKpiIiIKJC4dCmne+3s7Iyzs3OhxFCY13rdWrdujUql0tqX089pdmULm64+ywsXLuTXX39l9erVtGnTplCvLbKShFIIHVKpVDn+Y3D16lWqVKmCSqVi8uTJhRyZEEIUXX/99Rfjxo0jICCAXr166TocARjoOgAhRFYnTpygY8eOxMXFsWDBAkaNGvXartW4cWMuXryItbX1a7uGLnTv3p2mTZtiZ2dXoPWOGjWKPn364OjoWKD1lkS7d+/WdQjF0sqVK0lKSirwsiVJWFgYy5Yto3///roORfw/SSiFKGJ27txJjx49SElJITAwkHfeeee1Xs/U1JSaNWu+1mvoQrly5ShXrlyB12ttbV3iku/XpUqV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Vp1FXT79fX1ldDQUM3+9PR0pW3btgqgWFpaKqtXr9Y67/3331cAZdOmTVr7W7Vqpfz7n+ecfk6zK5ucnKzcunUrS5zx8fFK7dq1FUtLSyUpKUnrWOb98/LyUh4/fqx17NGjR4qVlZViYGCgHD9+XOvYmDFjNL+TMj/LiqIo4eHhilqtVqpUqZLlPu7atUvR09NTunXrlm1b6tatm+VznRmDnp6esn//fq1jM2bM0PwMZ0pKSlKMjIyUhg0batWhVqs1P+vLli3THJs7d64CKCtXrsxy30TuSEIphA5l/iIGFLVarVy7di1X5xgaGip37tzJ8/Xq1q2ruLi4aO3Lb0K5YsUKBVAaN26c5R+pnGQmZVOmTMlybM+ePQqgjBs3Lld1ZWRkKGXLllXeeustrf3ZJTlPnjxRjI2NlXr16mn2ffLJJ4qBgYFy+PBhBVCWLFmiKMqzZMDCwkKpVq1atrE/n1Bm/mP0ySefZBtj7969FZVKpZUsPZ9QTp8+XVGpVIqnp6dy//79LOdnJpTh4eG5uifP8/X1VQDlo48+yvU5S5cuVQBlxYoVuSqfl4SyTp06CqCcPHky1/FketFnLTMh+ney8Xx8gwYNytV1XrX97733Xo4xt2jRIsux0NBQBVD8/Py09uc3oXyR7777LtvkOvP+ZfefltWrVyuAMmDAgCzH4uPjlXLlymVJKDMTzW3btmUbR7du3RR9fX3l4cOHWdry7wT7+Rj69u2b5Vhqaqri7OysAMo///yj2d+6dWtFT09P8zMVEhKiAEpISIhiY2OjVVfnzp0VQLl9+3a28YqXkyFvIYqA9u3b88cff/Duu++yY8cOLCwsXlje2dlZMwz0b4qisGbNGpYvX86ZM2d48OAB6enpmuOGhoYFFvfevXsZMmQILi4ubN26FRMTkzyd37Bhwyz7KleuDJBlXmRqaipLliwhMDCQCxc
2024-04-09 19:53:24 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ax = sns.barplot(ppl_in_countries,x='rank',y='countryOfCitizenship',orient='h',hue = 'countryOfCitizenship', legend = False, palette='rainbow')\n",
"ax.set_title('Kraj z największą liczbą miliarderów')\n",
"ax.set_ylabel('Kraje')\n",
"ax.set_xlabel('Liczba milarderów')\n",
"for container in ax.containers:\n",
" ax.bar_label(container, fontsize=8)\n",
"plt.show()"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 31,
2024-04-09 19:53:24 +02:00
"id": "dc6c894e-3e60-491b-a7d0-16e434f8a4eb",
"metadata": {},
"outputs": [],
"source": [
"age_and_wealthy = df.groupby('age')['finalWorth'].mean()"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 32,
2024-04-09 19:53:24 +02:00
"id": "4f4918b6-0296-4f5a-8dec-7a65f7653777",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"age\n",
"18.0 3500.000000\n",
"19.0 1700.000000\n",
"20.0 2300.000000\n",
"21.0 2600.000000\n",
"26.0 1450.000000\n",
" ... \n",
"96.0 4366.666667\n",
"97.0 1425.000000\n",
"98.0 1750.000000\n",
"99.0 4375.000000\n",
"101.0 1300.000000\n",
"Name: finalWorth, Length: 79, dtype: float64"
]
},
2024-04-09 21:36:47 +02:00
"execution_count": 32,
2024-04-09 19:53:24 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"age_and_wealthy"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 33,
2024-04-09 19:53:24 +02:00
"id": "c97d5224-9a5b-4563-a618-5333e0e15625",
"metadata": {},
"outputs": [
{
"data": {
2024-04-09 21:36:47 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAlEAAAG0CAYAAAASHXJyAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAACXDUlEQVR4nO2deXxTZb7/P0+aLumarrSllFJoAVkKOIIKDsgwiuLVURz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801mDJlik6vlCAIgiBCAHmidCWsRFR3dzeKioowe/ZsPProo732/7//9/8097dv345nn30W06ZN02y/6qqrMGfOHOV+QkKCcrujowMrV67EhAkTcPPNN+Po0aN45plnkJSUpDzmwIEDeOKJJ7Bw4UJMmTIFmzdvxiOPPIJVq1ahsLBQz5dMEARBEAOH3ICYMYBz8kT1k7ASUZMnT8bkyZM97jebzZr733zzDcaNG4chQ4ZotptMpl7HymzevBk2mw2LFy+G0WjEsGHDUF1djXfffVcRURs2bMCkSZOU6NbVV1+N3bt344MPPsAtt9wS+AskCIIgiFAip+/iEoDuTvJE9ZOwElH+YLFYsH37dixZsqTXvjfffBP/+te/kJWVhRkzZmDevHmIiYkBAFRUVGDs2LEwGp0vvaysDG+99Rba2tqQnJyMiooKXHLJJZpzlpWV4ZtvvvE4HqvVCqvV+Z+RMQaTyaTcDhXyc4dyDITv0HxFHjRnkUc0zxm3O8SNuHghouy2sH8fwnm+IlZEff7550hISNB4pgDgoosuwogRI5CcnIwDBw7g1Vd
2024-04-09 19:53:24 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.lineplot(df, x='age', y='finalWorth',errorbar=None)\n",
"plt.show()"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 34,
2024-04-09 19:53:24 +02:00
"id": "8a71ce98-835a-4974-8edf-ceeb9ec5e2a7",
"metadata": {},
"outputs": [],
"source": [
"#category = df.explode('category')\n",
"categories = df.groupby('category')['rank'].count().sort_values(ascending=False).reset_index().head(20)\n"
]
},
{
"cell_type": "code",
2024-04-09 21:36:47 +02:00
"execution_count": 35,
2024-04-09 19:53:24 +02:00
"id": "4f6a6b8a-f111-4592-b187-9e801cdffa63",
"metadata": {},
"outputs": [
{
"data": {
2024-04-09 21:36:47 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAuQAAAHMCAYAAACds72jAAAAOXRFWHRTb2Z0d2FyZQBN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zffbZZ1pDQ0NtQkKCVqvN3ntBEvJ3R6asCCE+CjNmzKBWrVoMHTqU48ePZ1r2zp07BAUFsW/fPu7cuaPMw00VERGR5fPWqVNHmTbwKh8fHw4cOMCZM2eoV68eV65cITExkdq1a2Nra5umvK+vL99//z1nzpx563PktrCwMKZNm8bBgwe5d+9emrnI6V0nMzMzypcvn2Gb+fPnp1ixYmn2FypUCICHDx9mGtOpU6d48eJFhnPhk5OTAbh06VKm7bRo0YJRo0bRv39/du3ahb+/P7Vr16Z06dKZrsm+f/9+evXqhYeHB1u3bsXc3Fw5duzYMQBu376dbmxXr15VYsvqtJUrV65Qs2ZNnj59yo4dO2jQoEG65Z4+fcrs2bPZtGkT//77L48fP9aZW5yd1/TbXOMzZ85gYGBArVq10pT39vZOt19v+36oVq1alvuSmJjIuXPnsLOzY9asWemWMTU1fePr5XXpvd+KFClCoUKFuHXrFo8ePcLa2jpLbWX2mkqVnfdN6uvwwIED6d63EBMTw4sXL/j333+pXLnyW78XRO6ShFwI8VGoWbMmbdu2Zf369axdu5Z27dqlW+7GjRtUq1aNhw8fUqdOHRo1akT+/PkxNDTk1q1bLF++PFs3eRUsWDDd/Y6OjsDLm9Ze/b+Tk1O65VP3P3r06K3PkZuOHz+Or68
2024-04-09 19:53:24 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ax = sns.barplot(categories,x='rank',y='category',orient='h',hue = 'category', legend = False, palette='rainbow')\n",
"ax.set_title('Najpopularniejsze kategorie biznesu')\n",
"ax.set_ylabel('Kategoria')\n",
"ax.set_xlabel('Liczba osób')\n",
"for container in ax.containers:\n",
" ax.bar_label(container, fontsize=8)\n",
"plt.show()"
]
2024-04-09 21:36:47 +02:00
},
{
"cell_type": "code",
"execution_count": 36,
"id": "b834c620",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAwYAAAIACAYAAAA46Ht9AAAAOXRFW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4pi79GjxyX3LYQQ1Zl0JRKilpoxY4bja+7cufz111+EhYUxatQoPD09qySGb775BkVRmDNnDk5O/zZQBgYG8vrrrwPw9ddfl9iuadOmvPbaa8WWDRgwgCZNmrBnz55iy729vfH39y+xj0aNGnHPPfdw/PhxYmNjyxzzY489RufOnYstS0tL4/vvv6dr1668/PLLxV5zcXHhvffew263s3jx4mKv6XQ6tFptiWOUFu/lPPjggyVimj59Ot7e3ixevBij0eiIZfz48SQmJvLbb78VW7/oSfbjjz9ermNfyrPPPkv79u2LLXv00UcBiv2Odu7cyYkTJ+jVqxd33nlnsfUnTJhQoWNTKup6Azg7O/Phhx8W+7st8uSTT2I0Gkt0vfvqq6+w2+0Vdo2FEKKqSWIgRC1lt9sdX7m5uezevZugoCBGjx7N1KlTK/34OTk5REVF0aBBg1IH+xZ1ITl48GCJ1zp16lTqDV7jxo3JyMgosXzHjh2MGDGCxo0bo9frHf3G58+fD3DJfu+l6datW4lle/fuxWq1oigK06dPL/FVNF7i4qlgR48eTXR0NOHh4UyZMoV169Y5uiWVV2ldVry9venUqRMGg6HYcZ988kkURXEkAgCpqaksX76csLAwevXqdVUx/Fdp3dEaN24MUOx3dODAgUueg1ar5aabbqqQeCryekPhmJnAwMBSXxszZgweHh58+eWXjmVms5mFCxfi6+vLiBEjrvq4QgihJhljIEQd4O7uTrdu3fj1119p1KgR77//Pk888YTjRq4yFN2UXWoK1KLlmZmZJV7z8fEpdRsnJydsNluxZcuXL+eee+7BxcWF/v3706JFC9zd3dFoNGzZsoWtW7c6nqiXRXBwcIllaWlpQGGCsHfv3ktum5ub6/h+7ty5NG/enAULFjBr1ixmzZqFk5MTgwYNYvbs2bRs2bLMMQUFBV021otvgJs3b86AAQP4448/OH36NC1atODbb7/FaDRW6JPs0n5HRU/XrVarY1lRbFc6h2tVkdf7SnF5enrywAMP8H//939s3ryZvn37snLlShITE5k4cSIuLi7XejpCCKEKaTEQog7x8fGhdevWWCwWx5PcylI0/el/Z84pkpCQUGy9q/X666/j7OzMvn37WLFiBbNnz+bNN99k+vTptG7dutz7++9sNxfH+Pzzzxdrifnv1+bNmx3baLVaJk6cyKFDh0hKSmLZsmUMGzaMlStXMnDgwHIlK0lJSaUuL7q2/72GTz75JHa7na+++gooHHTs4uLCmDFjynzMilIU25XO4WIaTeFHk8ViKXWb0pLJirzeUPrfwcWefPJJ4N8uWkX/PvbYY+U6jhBCVCeSGAhRxxR18/jvk/eK5unpSYsWLTh//jynTp0q8XrRTXSXLl2u6ThRUVGEh4cTFhZWbLnNZuOvv/66pn0X6datGxqNhu3bt1/V9oGBgQwfPpyffvqJW265hdOnT/PPP/+UefvSpsbMysoiIiICFxeXEuc+ePBgmjRpwoIFC1i/fj0nT55kxIgR+Pr6XlX816Lo91vaOVit1lJ/R0Vxnjt3rsRr2dnZnDx58rLHvNL11mq1xVo1rkaHDh3o2bMny5cvZ/fu3WzcuJFevXqV+F0IIURNIomBEHXIihUrOHv2LDqdjh49elT68R566CHsdjsvvfRSsRux1NRU3nrrLcc61yIkJIRTp04RHx/vWGa325k+fTrHjh27pn0XCQwMZPTo0ezbt4+33nqr1JvK06dPc/bsWaCwdsOOHTtKrGM2m0lPTwcoV+Xl7777rsRYjOnTp5OVlcW
"text/plain": [
"<Figure size 800x600 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.figure(figsize=(8, 6))\n",
"df['category'].value_counts().plot(kind='pie', autopct='%1.1f%%')\n",
"plt.title('Billionaires by Industry')\n",
"plt.axis('equal')\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 37,
"id": "fc12442c",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA+AAAAKJCAYAAAA7q0NbAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAB6iUlEQVR4nO3de3zP9f//8ft7Z9tsw2bDjCHnc3KIWPRJCaWwpJTKIXRQpNMndCCHqFB9ooQISRKSJJMzKadhxJyHjWFmJ+/3749+e3+922hm79dre+92vVxcLnu/Xq/3a489d/C+v58ni81mswkAAAAAADiVm9kFAAAAAABQHBDAAQAAAAAwAAEcAAAAAAADEMABAAAAADAAARwAAAAAAAMQwAEAAAAAMAABHAAAAAAAAxDAAQAAAAAwAAEcAAAAAAADEMABACggUVFRslgsZpeh+Ph4WSwWPfHEE2aXkmdffvmlLBaLvvzyS4fjlStXVuXKlfN9bWFlsVgUFRVldhlFwogRI2SxWLR69eo8P6co/g4AKB4I4ACQC4vFckP//hkEjLJnzx4NHz5c999/vyIiIuz1ZGVlXfd5Z8+e1QsvvKDKlSvL29tb5cuX15NPPqljx47lq45Lly7pgw8+UNu2bVW2bFl5eXkpKChITZs21euvv66DBw/m675GIxQVjNx+R7y9vVW5cmU9/vjj2rNnj9klFltXrlxRUFCQPD09dfHixRznT548af+eTZ8+Pdd7tGnTRhaLRWvWrHF2udfF7yuAosjD7AIAoDAaPnx4jmMffPCBzp8/r+eff15BQUEO5xo2bGhMYf/w008/6a233pK7u7tuueUW+fj4KC0t7brPSUpK0u233664uDi1bdtWDz/8sPbu3avp06dr6dKl2rBhg6pUqZLnGjZu3KiuXbvq+PHjCg8PV4cOHVS+fHldunRJf/zxh8aMGaNx48Zp48aNaty48c1+yYXazJkzlZqaanYZhcbVv0fnz5/X5s2bNXPmTH377bdau3atw+9Nly5d1Lx5c5UrVy7fn++XX365mXINtWfPHvn6+hr+ed3d3RUVFaXvv/9ea9as0X333edwPrsNLRaLVq1apd69ezucT01N1caNG+Xn56cWLVoYVjcAuAoCOADkYsSIETmOffnllzp//ry957gwuPfee9WiRQvVr19fJUqUUOXKlXX48OHrPue1115TXFycXnzxRb3//vv24x999JGef/55DRgwQMuXL8/T59+7d6/at2+vlJQUvffee3rppZfk4eH4X8uhQ4c0bNgwXbhw4ca/wCImIiLC7BIKldx+j5599llNnjxZH3zwgcPIkcDAQAUGBt7U56tatepNPd9INWvWNO1zt23bVt9//71WrVqVI4CvWrVKJUqUUNu2bfXrr7/meO7atWuVkZGhtm3bytPT06iSAcBlMAQdAArA/Pnz1bp1awUGBqpEiRKqV6+eRo8erfT09BzXZs9TPX/+vAYNGqQKFSrIx8dHtWvX1kcffSSbzZbnz1ujRg01a9ZMJUqUyNP1KSkpmjVrlvz8/HKEo0GDBqlSpUr66aef8jxk/Nlnn9WFCxc0bNgwDRs2LEf4lqTIyEjNnz8/R2/Z/v371atXL1WoUEFeXl4qX768evXqpf379+e4xxNPPCGLxaL4+Pgc51avXi2LxZLj68mej52VlaVRo0bplltukbe3typWrKhhw4YpIyPDfm32nGJJiomJcRg6nX3fq+eUxsXFKTo6WmXLlpWbm5t9bur15oD/9NNP6tChg4KDg+Xt7a2qVatq6NChSk5OznHtjh071KNHD/sUgZCQEDVu3FgvvPCCMjMzc73/tezdu1cPPPCASpcuLT8/P7Vq1UorVqxwuOZ///ufLBaLRo4cmes9EhIS5OnpqXr16t3Q587N3XffLUk6c+aMw/Frzeu+EdeaA56enq733ntP9erVk6+vrwICAnTHHXdo/vz5Oa69+vscHx+vhx9+WMHBwfLx8VGTJk20ZMmSHM85f/68xo0bp7Zt2yo8PFxeXl4KCQlR586dtWHDhlxrzW349NVznefMmaNmzZrJ39/f4WtKTU3V6NGj1bBhQ/n5+cnf318tWrTQ119/ned2ateunaS/w/Y/rVq1Si1btlT79u11/Phx7du3L8f5q++R7UZ+vn/99Vf17dtXtWvXVkBAgEqUKKG6detq5MiR/zqCR8rb7+vV8vp9BAAjEMAB4Ca99tprio6O1p49e/TII49o0KBBstlseu2119S+fXuHoJctIyNDd911l3766Sc9/PDD6tOnj5KTk/X8889r0KBBTqt148aNunz5slq2bKmSJUs6nHNzc1P79u0lKdeer386dOiQVq5cKR8fH7388sv/er23t7f94y1btqhJkyb66quvdNttt2nIkCFq3ry5vvrqKzVp0kRbtmy5wa/s2h555BFNmjRJd9xxh5555hmVKFFCY8eOVb9+/ezXNGzY0D5culKlSho+fLj93z9D0l9//aVmzZopPj5ePXv2VN++fRUQEHDdGkaOHKl77rlHmzZt0n333afnnntO1apV0/jx49WyZUuH0QE7duxQs2bN9P3336t58+Z68cUX1b17d4WEhOjjjz/O9U2dazl06JBatGihs2fPql+/furWrZt+//133XvvvZo3b579up49eyogIECff/65rly5kuM+X3zxhbKyshzaLL9WrlwpSWrSpMlN3ysvMjIy1L59e7366qvKysrSwIED9dhjj9nfRHnttddyfd7hw4fVtGlTxcfH67HHHlN0dLR27dql+++/P8fvx549e/T666/Lzc1N9913n1588UX95z//0apVq9S6des8jyjJ9v777+vJJ59URESEBg0apHvvvVeSlJycrFatWum1116Tu7u7nnzyST3++OM6c+aMHnnkEb3xxht5un+dOnUUGhqq7du3KykpyX78r7/+0uHDh9W2bVvdeeedknIO689+fHUAv5Gfb0kaM2aMVqxYoYYNG6pfv356+umn5eXlpREjRujee+/N9Wfwajfy+3oj30cAMIQNAJAnlSpVskmyHTp0yH5s/fr1Nkm2ihUr2k6ePGk/npmZaevYsaNNku3dd9/N9T4tW7a0paWl2Y8nJSXZqlSpYpNki4mJuakaMzMzcz0/efJkmyTboEGDcj0/btw4myTbyy+//K+fa+bMmfav40ZYrVZbzZo1bZJsX331lcO5uXPn2iTZatSoYbty5Yr9+OOPP56j7bP9+uuvNkm24cOHOxxv06aNTZKtcePGtqSkJPvxlJQUW9WqVW1ubm4O3zObzWaTZGvTpk2udR86dMgmySbJ9uqrr+Z6TfbnvNqqVatskmwtWrSwnTt3zuHc9OnTbZJsL7zwgv3Yiy++aJNkW7RoUY77nz171qFdruXqWocMGeJwbsuWLTYPDw9bUFCQ7fz58/bjAwcOtEmy/fDDDw7XW61WW2RkpM3X19eWnJz8r5/bZrPZP/fw4cPt/wYPHmxr1aqVzWKx2Dp27Gi7cOFCrm0xffp0h+OVKlWyVapUKd/Xjho1yibJdu+99zr8Xpw6dcr++7Ju3Tr78avbbsSIEQ73Wr58uf1eV0tOTradOXMmRzscPXrUVq5cOVvNmjVzbaN//qwNHz7cJsnm6+tr27ZtW47nZP8ejBkzxuH45cuXbe3bt7dZLBbbH3/8keN5uenRo4dNku2bb76xH/vss89skmwbNmywWa1WW0hIiO2hhx5y+Drd3d1tZcqUsVmtVpvNduM/3zabzfbXX3/Zn3+1N954wybJNnfu3Fzb5ddff3U4ntff17x+HwHACPSAA8BN+OKLLyRJb7zxhsLCwuzHPTw89P7778vNzU3Tpk3L9bmjR4926BUuXbq0/vvf/0rSNVcfvlnnz5+XpGvOtc0+ntuw0X86efKkJCk8PPyGali/fr327t2rFi1aqGfPng7noqOj1apVK+3bt09r1669oftey5gxY1S6dGn7Yz8/P/Xs2VNWq1Vbt2694fuFhobmukjftXz00UeSpKlTp+ZYvO+JJ55Qw4YNNXv27BzPy21aQalSpeT
"text/plain": [
"<Figure size 1200x600 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"world_map = plt.figure(figsize=(12, 6))\n",
"ax = world_map.add_subplot(111)\n",
"df.groupby('country')['finalWorth'].sum().sort_values(ascending=False).head(10).plot(kind='bar', ax=ax)\n",
"plt.title('Top 10 Countries by Billionaire Wealth')\n",
"plt.xlabel('Country')\n",
"plt.ylabel('Total Wealth (USD)')\n",
"plt.xticks(rotation=90)\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "5228fbaf",
"metadata": {},
"source": [
"# Przykładowe wykresy z internetu\n"
]
},
{
"cell_type": "code",
"execution_count": 38,
"id": "bf671c0e",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAzoAAAKYCAYAAAC7Eo3lAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzddXwcdf748dfMWjYuTequVKgL5aCC2x3FetgX5zi44+zHCXdwB4ccHAelaCmlpUiF0lJ3d3dNmjaVNJ5sfG3m98dmN7uRapptsu/n4zHd7OhnP52Znfd+TNF1XUcIIYQQQgghGhE12AkQQgghhBBCiLomgY4QQgghhBCi0ZFARwghhBBCCNHoSKAjhBBCCCGEaHQk0BFCCCGEEEI0OhLoCCGEEEIIIRodCXSEEEIIIYQQjY4EOkIIIYQQQohGRwIdIYQQQgghRKMjgY4QQgghhBCi0TEG8+CLFi1i7ty5FBQU0LZtW5588kk6deoUzCQJIYQQQgghGoGglehs2LCByZMnc9999/HOO+/Qtm1b3nzzTWw2W7CSJIQQQgghhGgkghbozJs3jxtuuIERI0bQqlUrnnnmGcxmMytXrgxWkoQQQgghhBCNRFACHZfLRWpqKr169apMiKrSq1cvjhw5Um19p9NJaWmpbyovL6/P5AohhBBCCCEamKC00SksLETTNGJjYwPmx8bGkp6eXm39WbNmMWPGDN/7Ll268MYbb1zuZAohhBBCCCEaqKB2RnC+Ro0axZ133ul7ryhKEFMjhBBCCCGEuNIFJdCJjo5GVVUKCgoC5hcUFFQr5QEwmUyYTKb6SZwQQgghhBCiwQtKGx2j0UiHDh3Yt2+fb56maezbt48uXboEI0lCCCGEEEKIRiRoVdfuvPNOPvnkEzp06ECnTp1YsGABdrud4cOHBytJQgghhBBCiEYiaN1LDx06lEcffZTp06fz5z//mePHj/Pyyy/XWHUtGDZv3sx9991H69atueOOO9i2bZtvma7rbN68mREjRtC6dWtat25Nhw4deP/998nPzwcgPz+fJUuW+Ja3bt2aW2+9lXHjxp31uDt27OCpp54K2O7f//43ycnJAJSXl7Np0ya6dOniW96vXz/+85//4Ha7L1+GCCGEEEII0YAEtTOCW2+9lVtvvTWYSahVVlYWa9euJSsrizZt2uByuXzLNE3j9ddfR9M07r//frp27UpycjJff/01119/Pd27d+fAgQO89957dOzYkYcffpjMzEz27dvHjz/+yG233UarVq1Q1epx5scff8zRo0e57rrruPnmmzl48CBz5syhW7duJCYmUl5ezquvvkqLFi244447UFWVw4cPM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spKSmkpqYG3OMv9HvTe4//6quvKC8vr/V5siGSqmvnwb+aWlhYGH379mXx4sUB6+i6TkZGBvHx8XTs2BFVVTl48GDAOna7HZvNVmNva6qq8rOf/YxDhw5VW5adnY3FYqFNmzZ06tSp2nK3201hYWGt6e/SpS0FBQkV7xS/CXbsOMTGjXsBaNIkEaPRSGRkJG63G0VRSExMwmAwEB0djaZpGAwGkpKSUBSF2NhYIiIiMBqNJCYmAhAXF0d4eDgmk8k3LyEhAavVitFopEmTJhXHaoLZbEbTNOLj4yuO5Tl+REQEsbGxKIpCUlISRqPnNI2OjvbNU1WVmJgYTCYTBoOBxMREFEUhLi6uWpri4+MJDw/HbDb7jp+QkIDFYsFoNJKQ4M0biI2NJTIyEqPRSFJSkm97q9VabXtvUOrd3vuZrFarLyD1/0xOp9P3Ob156na7UVU1IE+9eeWd5/1M/nnqn6aqx9d13TcvMTERk8lEREQ
"text/plain": [
"<Figure size 1500x800 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"imga = mpimg.imread('images/kraje.png')\n",
"plt.figure(figsize=(15,8))\n",
"imgplot = plt.imshow(imga)\n"
]
},
{
"cell_type": "code",
"execution_count": 39,
"id": "39cd95bf",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAI5CAYAAABD8pZAAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd3wcxfXAv7vXT12yZLnJFfcCmGrTO8SBUAKh90B+oaUASYB0AgmEBAihmh7AplcbYiD0boq7jW3ci3q7fru/P2Sdr99elWS9Lx98q93ZN29m3+7MvH0zq+i6riMIgiAIgiAIgiAIgiAIuzhqTysgCIIgCIIgCIIgCIIgCIVAHGGCIAiCIAiCIAiCIAhCv0AcYYIgCIIgCIIgCIIgC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PqKoqFoslYlvX9YhnnM1mA7qef91fgvT7di5/MWjQIK644oqQ02vZ0mX84x//4NRTT+WQQw6JeIYKgiAIvQN5Mgv9njFjxgDw05/+lIceeoh58+aF1pdwuVx4PJ5QWrfbHXqD2I3VamXYsGEh55nf78fpdPL73/+e9957j5NOOqmApREEQdiJzWZj4sSJ1NXVMWbMGP511794++23qaiooKamhhkzZmAymSgqKsLj8eD1ennrrbdYtWoVAwcOxO/3R0TABoNB2tvbQ89I6Hph0P38gy5H2PTp03nuuefEESYIQl6prKyksrKS6upqPv7oY15+5WVGjhxJVVWVoS82er1eWlpaKC8vx+/
"text/plain": [
"<Figure size 1500x800 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"imga = mpimg.imread('images/top.png')\n",
"plt.figure(figsize=(15,8))\n",
"imgplot = plt.imshow(imga)"
]
},
{
"cell_type": "code",
"execution_count": 40,
"id": "2d804770",
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABEMAAAKYCAYAAACYdTY0AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOy9eXBc13klft7W+4bGvoMgCZAiKZISRVKbLVmyJduKHdnZJo4rla2SyUySmlSlZkkyqeQXV+KZyiQzk0niVE0WpyaJF8V27Mh2JC+yRO0USXFfAGIHGnvv/fbfH6+/i9sP3QBIkRIp3aNqEXj93n333Xdfo79zz3c+yXVdFwICAgICAgICAgICAgICAgLvEcjvdAcEBAQEBAQEBAQEBAQEBAQE3k4IMkRAQEBAQEBAQEBAQEBAQOA9BUGGCAgICAgICAgICAgICAgIvKcgyBABAQEBAQEBAQEBAQEBAYH3FAQZIiAgICAgICAgICAgICAg8J6CIEMEBAQEBAQEBAQEBAQEBATeUxBkiICAgICAgICAgICAgICAwHsKggwREBA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s7O5FMJrF9+3Ykk0mkUilIkgTDMHD69GksLS1henqaBec8iRMKhRAOh5FOp5FIJDA8PAxN06CqKlzXRaVSwWuvvYaVlRUsLCxg165d6OvrQ1dXFwKBQF1D1GKxiPHxcZw4cYKtdFOwTWkysiwjlUohGo2is7MTTU1NaG5uZv3SdR2VSgXFYhHFYhGqqjISRZIkrK6uYnV1FVeuXMHq6ipmZmZgWRYsy0I4HEYwGER7ezs6Ojp
"text/plain": [
"<Figure size 1500x800 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"imga = mpimg.imread('images/world.jpeg')\n",
"plt.figure(figsize=(15,8))\n",
"imgplot = plt.imshow(imga)"
]
2024-04-09 19:53:24 +02:00
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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",
2024-04-09 21:36:47 +02:00
"version": "3.11.8"
2024-04-09 19:53:24 +02:00
}
},
"nbformat": 4,
"nbformat_minor": 5
}