Rugby - uwaggs/usportspy GitHub Wiki
Rugby Functions
The usportspy
package provides functions to retrieve Rugby-related data, including game schedules. Currently, only Women's Rugby data is available.
Functions
rugby_get_schedule
Fetches the Rugby schedule based on gender.
Parameters:
gender
(str): Must be"m"
or"w"
. Note that only Women's data is currently available.
Returns:
pd.DataFrame
: A DataFrame containing the Rugby schedule. The columns of the returned DataFrame are: date, away, away_score, home, home_score, status, notes, month, conference, division, exhibition, postseason, and season.
Example:
from usportspy import rugby_get_schedule
# Get the schedule for female Rugby
schedule_female = rugby_get_schedule("w")
print(schedule_female.head())
Expected output:
date away away_score home home_score status ... month conference division exhibition postseason season
0 Wed. 21 StFX NaN Army NaN 5:00 PM EDT ... August 2024 0 0 1 0 2024-25
1 Thu. 22 StFX NaN American International College NaN 3:00 PM EDT ... August 2024 0 0 1 0 2024-25
2 Fri. 23 StFX NaN Quinnipiac NaN 9:00 AM EDT ... August 2024 0 0 1 0 2024-25
3 Fri. 23 StFX NaN Sacred Heart NaN 11:00 AM EDT ... August 2024 0 0 1 0 2024-25
4 Sat. 24 StFX NaN Brown NaN 11:00 AM EDT ... August 2024 0 0 1 0 2024-25
[5 rows x 13 columns]