James McCool
commited on
Commit
·
059dd01
1
Parent(s):
1c18539
Add debug print statement for flex rank in predict_dupes.py to enhance troubleshooting capabilities.
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -249,6 +249,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 249 |
else:
|
| 250 |
print(portfolio.head(10))
|
| 251 |
print(flex_ownerships.head(10))
|
|
|
|
| 252 |
portfolio['CPT_Own_percent_rank'] = portfolio.iloc[:,0].map(maps_dict['cpt_own_map']).rank(pct=True)
|
| 253 |
portfolio['FLEX1_Own_percent_rank'] = portfolio.iloc[:,1].map(maps_dict['own_map']).map(lambda x: flex_rank[flex_ownerships == x].iloc[0])
|
| 254 |
portfolio['FLEX2_Own_percent_rank'] = portfolio.iloc[:,2].map(maps_dict['own_map']).map(lambda x: flex_rank[flex_ownerships == x].iloc[0])
|
|
|
|
| 249 |
else:
|
| 250 |
print(portfolio.head(10))
|
| 251 |
print(flex_ownerships.head(10))
|
| 252 |
+
print(flex_rank.head(10))
|
| 253 |
portfolio['CPT_Own_percent_rank'] = portfolio.iloc[:,0].map(maps_dict['cpt_own_map']).rank(pct=True)
|
| 254 |
portfolio['FLEX1_Own_percent_rank'] = portfolio.iloc[:,1].map(maps_dict['own_map']).map(lambda x: flex_rank[flex_ownerships == x].iloc[0])
|
| 255 |
portfolio['FLEX2_Own_percent_rank'] = portfolio.iloc[:,2].map(maps_dict['own_map']).map(lambda x: flex_rank[flex_ownerships == x].iloc[0])
|