Skip to content

Commit 35f272e

Browse files
committed
Adding graphs to our game report.
1 parent fe9a6dd commit 35f272e

File tree

4 files changed

+1743
-1173
lines changed

4 files changed

+1743
-1173
lines changed

code/09-agentic-ai/game-sales-analysis/__init__.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
--------------
1414
from data_loader import load_game_sales_data, setup_display_options
1515
from data_analysis import analyze_missing_data, get_top_performers
16-
16+
1717
# Set up environment
1818
setup_display_options()
19-
19+
2020
# Load and analyze data
2121
df = load_game_sales_data()
2222
missing_info = analyze_missing_data(df)
2323
top_games = get_top_performers(df, 'Global_Sales', 10)
2424
"""
2525

26-
__version__ = "1.0.0"
27-
__author__ = "Video Game Sales Research Team"
26+
__version__ = '1.0.0'
27+
__author__ = 'Video Game Sales Research Team'
2828

2929
# Import main functions for easy access
3030
from .data_loader import setup_display_options, load_game_sales_data
@@ -41,16 +41,16 @@
4141
from .utils import suggest_next_analysis_steps, print_analysis_complete_message
4242

4343
__all__ = [
44-
"setup_display_options",
45-
"load_game_sales_data",
46-
"analyze_missing_data",
47-
"get_top_performers",
48-
"analyze_distribution",
49-
"calculate_regional_breakdown",
50-
"analyze_publishers",
51-
"analyze_year_trends",
52-
"get_regional_market_share",
53-
"generate_summary_statistics",
54-
"suggest_next_analysis_steps",
55-
"print_analysis_complete_message",
56-
]
44+
'setup_display_options',
45+
'load_game_sales_data',
46+
'analyze_missing_data',
47+
'get_top_performers',
48+
'analyze_distribution',
49+
'calculate_regional_breakdown',
50+
'analyze_publishers',
51+
'analyze_year_trends',
52+
'get_regional_market_share',
53+
'generate_summary_statistics',
54+
'suggest_next_analysis_steps',
55+
'print_analysis_complete_message',
56+
]

code/09-agentic-ai/game-sales-analysis/data_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def analyze_year_trends(df: pd.DataFrame) -> Dict[str, any]:
136136
print('=== Gaming Industry Timeline ===')
137137
print(f'📅 Dataset covers: {year_stats["earliest_year"]:.0f} - {year_stats["latest_year"]:.0f}')
138138
print(f'📊 Median release year: {year_stats["median_year"]:.0f}')
139-
games_by_year = df_with_years.groupby("Year").size()
139+
games_by_year = df_with_years.groupby('Year').size()
140140
peak_year = games_by_year.idxmax()
141141
peak_count = games_by_year.max()
142142
print(f'🎮 Peak gaming year: {peak_year:.0f} ({peak_count} games)')

code/09-agentic-ai/game-sales-analysis/data_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import seaborn as sns
1010

1111

12-
1312
def setup_display_options() -> None:
1413
"""Configure pandas and matplotlib display options for better output."""
1514
# Pandas display options

0 commit comments

Comments
 (0)