James McCool commited on
Commit
37de66c
·
1 Parent(s): aee7e1d

Update type conversion in predict_dupes function to conditionally apply float32 conversion based on sport variable, enhancing compatibility for non-LOL sports.

Browse files
Files changed (1) hide show
  1. global_func/predict_dupes.py +5 -2
global_func/predict_dupes.py CHANGED
@@ -621,7 +621,10 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
621
  portfolio[int16_columns_nstacks] = portfolio[int16_columns_nstacks].astype('uint16')
622
  except:
623
  pass
624
-
625
- portfolio[float32_columns] = portfolio[float32_columns].astype('float32')
 
 
 
626
 
627
  return portfolio
 
621
  portfolio[int16_columns_nstacks] = portfolio[int16_columns_nstacks].astype('uint16')
622
  except:
623
  pass
624
+ if sport_var != 'LOL':
625
+ try:
626
+ portfolio[float32_columns] = portfolio[float32_columns].astype('float32')
627
+ except:
628
+ pass
629
 
630
  return portfolio