Multichem commited on
Commit
c636a6e
·
1 Parent(s): b010910

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -219,7 +219,7 @@ def create_random_portfolio(Total_Sample_Size, raw_baselines, field_growth):
219
  # Generate random portfolios
220
  rng = np.random.default_rng()
221
  total_elements = [1, 1, 1, 1, 1, 1, 1, 1]
222
- keys = ['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'UTIL']
223
 
224
  all_choices = [rng.choice(ranges_dict[f"{key}_range"], size=(Total_Sample_Size, elem)) for key, elem in zip(keys, total_elements)]
225
  RandomPortfolio = pd.DataFrame(np.hstack(all_choices), columns=['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'UTIL'])
 
219
  # Generate random portfolios
220
  rng = np.random.default_rng()
221
  total_elements = [1, 1, 1, 1, 1, 1, 1, 1]
222
+ keys = ['pg', 'sg', 'sf', 'pf', 'c', 'g', 'f', 'util']
223
 
224
  all_choices = [rng.choice(ranges_dict[f"{key}_range"], size=(Total_Sample_Size, elem)) for key, elem in zip(keys, total_elements)]
225
  RandomPortfolio = pd.DataFrame(np.hstack(all_choices), columns=['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'UTIL'])