Skip to content

Releases: statsbomb/statsbombpy

statsbombpy 1.15.0

27 Feb 14:24
e7fd878
Compare
Choose a tag to compare

Add missing events and formations fields to sb.lineups()

statsbombpy 1.14.0

06 Sep 10:20
341155e
Compare
Choose a tag to compare

This release adds functionality to interact with the new team match stats endpoint, which provides aggregated data at the team-match level. It is only available to customers with API access.

statsbombpy 1.13.1

01 Aug 00:10
f619112
Compare
Choose a tag to compare

This update fixes a bug with certain 360 frames where the variable distances_from_edge_of_visible_area is None. Previously, the sb.frames() function couldn't handle such instances and would return an error for that match.

statsbombpy 1.13.0

19 Mar 19:56
bf06ae9
Compare
Choose a tag to compare

This release adds substitution info to the event functions.

Variables added:

  • substitution_outcome_id
  • substitution_replacement_id

1.12.0

12 Dec 14:38
29bb479
Compare
Choose a tag to compare

This release adds pass_recipient info to events.

statsbombpy 1.11.0

18 Jul 16:35
bb36ff1
Compare
Choose a tag to compare

This release upgrades the API version numbers for the following endpoints:
matches -> v6

What's new?

Collection Status added to Matches in Competition API.
To help customers find out where a match is in the collection pipeline we have added a new field collection_status to the “matches in competition” API. There are 16 collection status options available, which are listed in detail in Appendix 3 in the “Matches in Competition” API documentation

statsbombpy 1.10.1

15 Jun 15:40
5188bac
Compare
Choose a tag to compare

This patch adds a status check to the public API calls.

Previously when a user entered the wrong match or competition and season id into the open data functions you get the following error:
JSONDecodeError: Extra data: line 1 column 4 (char 3)

Instead, we've added a status check to all the public API calls so that if, for example, the user passes through an invalid match_id we get a HTTPError 404 returned to indicate that they've tried to access a resource that doesn't exist.

statsbombpy 1.10.0

14 Apr 10:19
04e0df8
Compare
Choose a tag to compare

This release upgrades the API version numbers for the following endpoints:
events -> v8
player-match-stats -> v4
player-season-stats -> v4

What's new?

Expected Pass (xP) & Pass Clustering models added to events data.

  • The xP model data is accessible via the pass_success_probability field.
  • This is the estimated likelihood of an attempted pass being completed successfully based on the location of the pitch and context the pass is attempted under, and the location of the target location of the pass.
  • The pass clustering model is accessible via the following fields:
    • pass_cluster_id: A numerical identifier that indicates which of the 60 distinct clusters a pass is most associated with

    • pass_cluster_label: A text description of the cluster most strongly associated with the pass.

    • pass_cluster_probability: The probability that the pass belongs to the cluster described in the pass_cluster_label and pass_cluster_id.

Defensive actions metric added to player stats data.

  • Player Match Stats
    • player_season_defensive_action_90: Tackles, pressure events and fouls recorded per 90.
  • Player Season Stats
    • player_match_defensive_actions: Tackles, pressure events and fouls recorded

statsbombpy 1.9.0

28 Mar 13:06
4c69341
Compare
Choose a tag to compare

In further efforts to speed up statsbombpy this update removes the slow language engine responsible for pluralising event types.

  • We now use a mapping dictionary to change event types from their singular to plural versions (e.g. Pass -> passes) - this is much faster than letting the language engine do it.
  • As a result, we have removed inflect and joblib from the requirements as they are no longer dependencies.

statsbombpy 1.8.1

27 Mar 23:36
b6d3b7b
Compare
Choose a tag to compare
  • This patch, adds the dependencies inflect and joblib which were incorrectly removed in the previous release.
  • nose2, which is required for running the tests was moved out of the dependencies and into the extra requirements.