Skip to content

v3.18.0 - IMPECT data

Latest

Choose a tag to compare

@probberechts probberechts released this 23 Oct 09:14
· 15 commits to master since this release
369a9b5

✨ 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

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

🪲 Fixes

  • [SkillCorner] Updated URLs for open data loader by @koenvo in #510

Full Changelog: v3.17.1...v3.18.0