source
fetch_all_players
fetch_all_players ()
Fetches all players in the rugbypy manifest file.
source
fetch_player
fetch_player (name:str)
Uses a similarity tool to fetch a players id
name |
str |
the name of the rugby player you wish to fetch the id for. |
fetch_player("johnny sexton")
267 |
149315 |
Anthony Watson |
294 |
16004 |
Johnny Sexton |
796 |
291349 |
Ayden Johnstone |
source
fetch_player_stats
fetch_player_stats (player_id:str, date:Optional[str]=None)
Fetches all player stats for a particular player or if a date is passed then just for a particular game.
player_id |
str |
|
the player id of a particular player. |
date |
typing.Optional[str] |
None |
the date of a particular match you wish to fetch the player stats for. |
fetch_player_stats(player_id="16004")
Fetching all player stats for player_id:16004...
0 |
16004 |
20230204 |
Johnny Sexton |
Ireland |
3 |
180659 |
Six Nations Championship |
4 |
Wales |
92.0 |
... |
3.0 |
8.0 |
7.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
1.0 |
0.0 |
0 |
16004 |
20230211 |
Johnny Sexton |
Ireland |
3 |
180659 |
Six Nations Championship |
9 |
France |
92.0 |
... |
1.0 |
5.0 |
3.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0 |
16004 |
20230312 |
Johnny Sexton |
Ireland |
3 |
180659 |
Six Nations Championship |
2 |
Scotland |
92.0 |
... |
2.0 |
5.0 |
9.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
2.0 |
0.0 |
0 |
16004 |
20230318 |
Johnny Sexton |
Ireland |
3 |
180659 |
Six Nations Championship |
1 |
England |
92.0 |
... |
6.0 |
9.0 |
5.0 |
0.0 |
0.0 |
0.0 |
0.0 |
1.0 |
2.0 |
0.0 |
0 |
16004 |
20230909 |
Johnny Sexton |
Ireland |
3 |
164205 |
Rugby World Cup |
12 |
Romania |
92.0 |
... |
0.0 |
5.0 |
4.0 |
0.0 |
0.0 |
2.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0 |
16004 |
20230916 |
Johnny Sexton |
Ireland |
3 |
164205 |
Rugby World Cup |
16 |
Tonga |
92.0 |
... |
1.0 |
1.0 |
2.0 |
0.0 |
0.0 |
1.0 |
0.0 |
0.0 |
0.0 |
0.0 |
6 rows × 40 columns