Jimin Park commited on
Commit
28217f5
·
1 Parent(s): 944060d

added model

Browse files
Files changed (1) hide show
  1. util/app_training_df_getter.py +5 -5
util/app_training_df_getter.py CHANGED
@@ -446,11 +446,12 @@ def get_meta_stats():
446
 
447
  def create_app_user_training_df(url):
448
  try:
449
- meta_stats = get_meta_stats()
450
 
451
- weekly_meta_stats = get_weekly_meta()
452
 
453
  # Input validation
 
454
  if not url or not isinstance(url, str):
455
  raise ValueError("Invalid URL provided")
456
 
@@ -466,11 +467,10 @@ def create_app_user_training_df(url):
466
  # Get recent stats
467
  print("Fetching recent matches...")
468
  recent_stats = get_matches_stats(region, username)
469
- print("type(recent_stats): ", type(recent_stats))
470
 
471
  # Validate recent_stats
472
  if recent_stats is None or recent_stats.empty:
473
- raise ValueError("No recent matches found")
474
 
475
  print("Recent matches columns:", recent_stats.columns.tolist())
476
 
@@ -532,4 +532,4 @@ def create_app_user_training_df(url):
532
 
533
  url = "https://www.op.gg/summoners/euw/Agurin-EUW"
534
  return_value = create_app_user_training_df(url)
535
- print("return value: \n", return_value)
 
446
 
447
  def create_app_user_training_df(url):
448
  try:
449
+ #meta_stats = get_meta_stats()
450
 
451
+ #weekly_meta_stats = get_weekly_meta()
452
 
453
  # Input validation
454
+ print("Input URL is: ", url, "\n")
455
  if not url or not isinstance(url, str):
456
  raise ValueError("Invalid URL provided")
457
 
 
467
  # Get recent stats
468
  print("Fetching recent matches...")
469
  recent_stats = get_matches_stats(region, username)
 
470
 
471
  # Validate recent_stats
472
  if recent_stats is None or recent_stats.empty:
473
+ raise ValueError("No recent matches found. \n type(recent_stats): ", type(recent_stats) , "\n recent_stats: \n", recent_stats)
474
 
475
  print("Recent matches columns:", recent_stats.columns.tolist())
476
 
 
532
 
533
  url = "https://www.op.gg/summoners/euw/Agurin-EUW"
534
  return_value = create_app_user_training_df(url)
535
+ print("type(Return_value):", type(return_value), "\n return value: \n", return_value)