Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
29b5a89
1
Parent(s):
c789832
added poisson var
Browse files
app.py
CHANGED
@@ -280,6 +280,7 @@ with tab3:
|
|
280 |
players_only['Mean_Outcome'] = overall_file.mean(axis=1)
|
281 |
players_only['Prop'] = players_only['Player'].map(prop_dict)
|
282 |
players_only['Book'] = players_only['Player'].map(book_dict)
|
|
|
283 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
284 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
285 |
players_only['Over'] = np_where(players_only['Prop'] <= 3, players_only['poisson_var'], prop_check[prop_check > 0].count(axis=1)/float(total_sims))
|
|
|
280 |
players_only['Mean_Outcome'] = overall_file.mean(axis=1)
|
281 |
players_only['Prop'] = players_only['Player'].map(prop_dict)
|
282 |
players_only['Book'] = players_only['Player'].map(book_dict)
|
283 |
+
players_only['poisson_var'] = players_only.apply(calculate_poisson, axis=1)
|
284 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
285 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
286 |
players_only['Over'] = np_where(players_only['Prop'] <= 3, players_only['poisson_var'], prop_check[prop_check > 0].count(axis=1)/float(total_sims))
|