Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmaloney committed Aug 29, 2019
1 parent dca5928 commit 685fcfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper.py
Expand Up @@ -85,7 +85,10 @@ def merge_data(df):

test = pd.merge(df, odds_db, left_on=["Fighter_1"], right_on=["Fighter1"])
test2 = pd.merge(test, odds_db, left_on=["Fighter_2"], right_on=["Fighter2"])


test2["Fighter1_Odds"]=test2.apply(f1_odds, axis=1)
test2["Fighter2_Odds"]=test2.apply(f2_odds, axis=1)

final_df = test2[['Event', 'Fighter_1', 'Fighter_2', 'Fighter1_Odds', 'Fighter2_Odds']]

return final_df
Expand Down

0 comments on commit 685fcfc

Please sign in to comment.