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 30, 2019
1 parent 4c9cfb4 commit 423894f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -85,10 +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"])
test3= pd.concat([test2,odds_db],axis=1, sort=True)



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

return final_df

Expand Down

0 comments on commit 423894f

Please sign in to comment.