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 685fcfc commit 225d375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -86,8 +86,8 @@ 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)
test2["Fighter1_Odds"]=test2.apply(odds_db.f1_odds, axis=1)
test2["Fighter2_Odds"]=test2.apply(odds_db.f2_odds, axis=1)

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

Expand Down

0 comments on commit 225d375

Please sign in to comment.