niesfutbol / ideas

0 stars 0 forks source link

How Consistent Was Every Premier League Lineup This Season? #15

Closed nepito closed 11 months ago

nepito commented 1 year ago

To evaluate the consistency of Newcastle’s squad, along with every other Premier League team this season, we created a new metric called STABLE (Similarity of Teams And Balance of Lineups across Every match) that tells us how similar each team looked every time it took the pitch.

Artículo de fivethirtyeight


History

nepito commented 11 months ago

Alineación

Estas son las instrucciones para las alineaciones:

titulares = lineup["response"][0]["startXI"]
sustitutos = lineup["response"][0]["substitutes"]

Eventos

Esta instrucción tiene los jugadores que salieron:

[event["player"] for event in events["response"] if event["type"] == "subst"]

Los datos que nos interesa son los siguientes:

sale = [event["player"] for event in events["response"] if event["type"] == "subst"]
entra = [event["assist"] for event in events["response"] if event["type"] == "subst"]
tiempo = [event["time"] for event in events["response"] if event["type"] == "subst"]
nepito commented 11 months ago

The note Consistencia en las alineaciones: la visualización closes this issues.