Closed DavidJArnold closed 2 years ago
Thanks for the great contribution @DavidJArnold :+1: Looks great! I think the Match class (in particular) is much needed and opens up potential for adding some match analytics functionality.
Happy to guide or help or take recommendations for any further contributions you can make!
New feature for season statistics, with match and ladder information, from afltables.com/afl/season/\.html .
Relates to this issue however I thought it would be useful to have a simple way to access match scores and results, leaving detailed team and player statistics to the existing classes.
Usage:
Outputs:
season_stats.season_ladders
list of abbreviated ladders (dataframes) at end of each roundseason_stats.season_matches
list of Match object for each match in the seasonseason_stats.match_summary
dataframe summary of all matches in the seasonseason_stats.final_ladder
dataframe for the final season ladder (empty list if season is unfinished)The Match class is a representation of a match, and has a
__repr__
function. Match objects hold a bunch of information about a match, listed in