In [1]:
from atod import Match
In [2]:
# just a random match
match_id = 1000193456
match = Match(match_id)
In [3]:
# get the description of the match in terms of laning and heroes types
d = match.get_description(include=['laning', 'type'])
d
Out[3]:
What's up with indexes? This is how pandas MultiIndex looks when you are not expirienced user (like me). But exactly that thing makes Hero descriptions very beautiful!
So, how to get how many point radiant team have in nuke power (type, nuker):
In [4]:
d['radiant'][('type', 'nuker')]
Out[4]:
Yes, this is ugly, I will try to fix this ASAP.
Here is another example of usage to make file look bigger.
In [5]:
print(match.get_description(include=['role']))
In [ ]: