Original size 1140x1600

визуализация данных

Original size 2480x1750
Original size 2480x1750
Original size 2480x1750
Original size 2480x1750
Original size 2480x1750

данные взяты с этого сайта: https://www.kaggle.com/gregorut/videogamesales

Original size 2480x1750
Original size 2480x1750

Топ-10 самых продаваемых игр

top_games = data.nlargest (10, 'Global_Sales') # Выбираем 10 игр с наибольшими продажами

Стилизация графика

plt.figure (figsize=(12, 8)) sns.barplot (x='Global_Sales', y='Name', data=top_games, palette='viridis') plt.title ('Топ-10 самых продаваемых игр', fontsize=16) plt.xlabel ('Продажи (миллионы)', fontsize=14) plt.ylabel ('Название игры', fontsize=14) plt.xticks (fontsize=12) plt.yticks (fontsize=12) plt.show ()

Original size 2480x1750

Группировка данных по годам и суммирование продаж

yearly_sales = data.groupby ('Year')['Global_Sales'].sum ()

Стилизация графика

plt.figure (figsize=(12, 6)) sns.lineplot (x=yearly_sales.index, y=yearly_sales.values, color='blue', linewidth=2.5) plt.title ('Динамика продаж видеоигр по годам', fontsize=16) plt.xlabel ('Год', fontsize=14) plt.ylabel ('Продажи (миллионы)', fontsize=14) plt.grid (True) # Добавляем сетку plt.show ()

Original size 2480x1750

Группировка данных по жанрам и суммирование продаж

genre_sales = data.groupby ('Genre')['Global_Sales'].sum ().sort_values (ascending=False)

Стилизация графика

plt.figure (figsize=(12, 8)) sns.barplot (x=genre_sales.values, y=genre_sales.index, palette='coolwarm') plt.title ('Распределение продаж по жанрам', fontsize=16) plt.xlabel ('Продажи (миллионы)', fontsize=14) plt.ylabel ('Жанр', fontsize=14) plt.xticks (fontsize=12) plt.yticks (fontsize=12) plt.show ()

Original size 2480x1750

Суммирование продаж по регионам

region_sales = data[['NA_Sales', 'EU_Sales', 'JP_Sales', 'Other_Sales']].sum ()

Стилизация графика

plt.figure (figsize=(8, 8)) plt.pie (region_sales, labels=region_sales.index, autopct='%1.1f%%', colors=sns.color_palette ('pastel'), startangle=90) plt.title ('Доля продаж по регионам', fontsize=16) plt.show ()

Original size 2480x1750

https://colab.research.google.com/drive/1D9aoOycEhE2PNNSwAmhJ0semPcmaLkkE?usp=sharing

визуализация данных
Project created at 21.03.2025
brnd
For us, a startup is a creative and innovative project with great potential for growth. We are dedicated to finding the best projects and helping them refine their concept, develop branding, and create effective promotion strategies. We also invest in production and replication to ensure their success. Are you ready to take your business to the next level? Join our startup incubator program and let us help you grow.
Brand accelerator
Startup ideas
Marketplace shops
We use cookies to improve the operation of the website and to enhance its usability. More detailed information on the use of cookies can be fo...
Show more