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 c6bfde2 commit ff28727
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, ["Fighter1_Odds"],["Fighter2_Odds"])
test3=pd.concat[test2,odds_db]


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

return final_df

Expand Down

0 comments on commit ff28727

Please sign in to comment.