✨ Highlights ✨
This release introduces support for loading IMPECT event data. We’re excited to share that this feature was sponsored by IMPECT, who also made a public open dataset available at https://github.com/ImpectAPI/open-data.
from kloppy import impect
dataset = impect.load_open_data(match_id=122976)
print(dataset.to_df().head())Implementation by @DriesDeprest, @koenvo and @UnravelSports in #504. A huge thank-you to IMPECT for sponsoring and supporting this contribution to the open-source community!
🚀 Other updates
- Added
PositionType.position_groupby @UnravelSports in #472
This makes it easier to check a player’s top-level position group:
player = dataset.metadata.teams[0].get_player_by_id("3089")
assert player.starting_position == PositionType.RightAttackingMidfield
assert player.starting_position.position_group == PositionType.Midfielder- [SkillCorner] Add
only_alivefunctionality by @UnravelSports in #509
🪲 Fixes
Full Changelog: v3.17.1...v3.18.0