Expected Goals
\[ \textrm{XG}(\boldsymbol{\mathbf{x}}) = \mathbb{E}[Y \vert \boldsymbol{\mathbf{X}} = \boldsymbol{\mathbf{x}}] = \mathbb{P}(Y = 1 \vert \boldsymbol{\mathbf{X}} = \boldsymbol{\mathbf{x}}) \]
shot.body_part.namegroup_by() functionality to do thisshots.statsbomb_xg)shot.freeze_frame contains data frame with other players & their positions