Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PeiShang committed Apr 12, 2018
1 parent b06a3f0 commit 844c464
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opendota2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import pandas as pd
import time
import sys
import csv


def __build_url(base_url, **kwargs):
Expand Down Expand Up @@ -626,6 +627,10 @@ def get_top_team_matches_dataframe(top_team_limit=2000):
"""Generate matches dataframe"""

matches_id_lst, top_teams_rating_dict = __get_top_team_matches(team_limit=top_team_limit)
with open("./matches_lst.csv", "w") as matches_lst_file:
wr = csv.writer(matches_lst_file)
for match_id in matches_id_lst:
wr.writerow(match_id)

columns = ['Radiant_team_id','Radiant_team_rating', 'Dire_team_id', 'Dire_team_rating',
'Radiant_hero1', 'Radiant_hero2', 'Radiant_hero3', 'Radiant_hero4', 'Radiant_hero5',
Expand Down

0 comments on commit 844c464

Please sign in to comment.