James McCool
commited on
Commit
·
28e04d2
1
Parent(s):
701581a
printing some results, forcing dataframe format
Browse files
app.py
CHANGED
|
@@ -1034,7 +1034,10 @@ def create_position_export_dict(column_name, csv_file, site_var, type_var, sport
|
|
| 1034 |
return {}
|
| 1035 |
|
| 1036 |
def parse_portfolio_on_mapped(portfolio, map_dict, map_key, filter_keys, low_threshold, high_threshold, column_choices):
|
| 1037 |
-
mapping_port = portfolio[column_choices]
|
|
|
|
|
|
|
|
|
|
| 1038 |
|
| 1039 |
if map_key not in ['team_map', 'pos_map']:
|
| 1040 |
# Numerical mapping - filter by thresholds
|
|
|
|
| 1034 |
return {}
|
| 1035 |
|
| 1036 |
def parse_portfolio_on_mapped(portfolio, map_dict, map_key, filter_keys, low_threshold, high_threshold, column_choices):
|
| 1037 |
+
mapping_port = portfolio[column_choices]
|
| 1038 |
+
print(mapping_port.head(10))
|
| 1039 |
+
mapping_port = mapping_port.map(map_dict[map_key])
|
| 1040 |
+
print(mapping_port.head(10))
|
| 1041 |
|
| 1042 |
if map_key not in ['team_map', 'pos_map']:
|
| 1043 |
# Numerical mapping - filter by thresholds
|