Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/probberechts/soccerdata
/ functions
Functions
201 in github.com/probberechts/soccerdata
⨍
Functions
201
◇
Types & classes
14
Method
leagues
Return a list of selected leagues.
soccerdata/fbref.py:112
Method
leagues
Return a list of selected leagues.
soccerdata/_common.py:450
Function
match_epl_5y
Return a MatchHistory instance for the last 5 years of the EPL.
tests/conftest.py:33
Function
mock_tls_client
()
tests/test_common.py:25
Method
process_four_digit_year
Process a 4-digit string like '1994' or '9495'.
soccerdata/_common.py:135
Method
process_full_year_range
Process a range of 4-digit strings like '1994-1995'.
soccerdata/_common.py:169
Method
process_partial_year_range
Process a range of 4-digit and 2-digit string like '1994-95'.
soccerdata/_common.py:175
Method
process_short_year_range
Process a range of 2-digit strings like '94-95'.
soccerdata/_common.py:181
Method
process_two_digit_year
Process a 2-digit string like '94'.
soccerdata/_common.py:159
Method
read_events
Retrieve the the event data for each game in the selected leagues and seasons. Parameters ---------- match_id : int or list o
soccerdata/whoscored.py:585
Method
read_leagues
Retrieve the selected leagues from the datasource. Returns ------- pd.DataFrame
soccerdata/understat.py:96
Method
read_lineup
Retrieve lineups for the selected leagues and seasons. Parameters ---------- match_id : int or list of int, optional
soccerdata/fbref.py:809
Method
read_player_match_stats
Retrieve the player match stats for the selected leagues and seasons. Parameters ---------- match_id : int or list of int, op
soccerdata/understat.py:450
Method
read_player_season_stats
Retrieve the player season stats for the selected leagues and seasons. Parameters ---------- force_cache : bool
soccerdata/understat.py:366
Method
read_schedule
Retrieve the game schedule for the selected leagues and seasons. Parameters ---------- force_cache : bool By def
soccerdata/sofascore.py:182
Method
read_team_match_stats
Retrieve the team match stats for the selected leagues and seasons. Parameters ---------- force_cache : bool By
soccerdata/understat.py:267
Method
seasons
Return a list of selected seasons.
soccerdata/_common.py:455
Function
sofascore_epl_1516
Return a correctly initialized instance of Sofascore filtered by league: Premier League.
tests/conftest.py:57
Function
sofifa_bundesliga
Return a correctly initialized instance of SoFIFA filtered by league: Bundesliga.
tests/conftest.py:15
Function
test_add_alt_team_names
()
tests/test_common.py:195
Function
test_add_standardize_team_name
()
tests/test_common.py:202
Function
test_available_leagues
()
tests/test_FBref.py:10
Function
test_combine_big5
()
tests/test_FBref.py:157
Function
test_combine_big5_player_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:201
Function
test_combine_big5_team_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:178
Function
test_concat
()
tests/test_FBref.py:117
Function
test_concat_with_forfeited_game
()
tests/test_FBref.py:147
Method
test_datetime_date
It should accept a datetime object.
tests/test_ClubElo.py:40
Method
test_default
It should return a dataframe with the latest ELO ratings if no date is given.
tests/test_ClubElo.py:27
Function
test_download_and_save_cached
(tmp_path, mock_tls_client)
tests/test_common.py:79
Function
test_download_and_save_no_cache
(tmp_path, mock_tls_client)
tests/test_common.py:97
Function
test_download_and_save_no_cache_filepath
(tmp_path, mock_tls_client)
tests/test_common.py:124
Function
test_download_and_save_no_store_no_filepath
(mock_tls_client)
tests/test_common.py:113
Function
test_download_and_save_not_cached
(tmp_path, mock_tls_client)
tests/test_common.py:66
Function
test_download_and_save_variable_no_store_no_filepath
(mock_tls_client)
tests/test_common.py:139
Function
test_env_loglevel
(monkeypatch)
tests/test_config.py:44
Function
test_env_nocache
(monkeypatch)
tests/test_config.py:16
Function
test_env_nostore
(monkeypatch)
tests/test_config.py:30
Function
test_env_soccerdata_dir
(monkeypatch, tmp_path)
tests/test_config.py:10
Method
test_handles_special_characters_in_team_names
It should be able to deal with special characters in team names.
tests/test_ClubElo.py:82
Function
test_id_not_in_season
It should raise a ValueError if the selected game is not in the specified season.
tests/test_ESPN.py:33
Function
test_is_complete
()
tests/test_common.py:239
Function
test_is_complete_default_value
(mocker)
tests/test_common.py:253
Function
test_is_complete_undefined_league
(mocker)
tests/test_common.py:260
Function
test_make_game_id
()
tests/test_common.py:180
Function
test_missing_events
()
tests/test_FBref.py:107
Method
test_raises_on_bad_params
It should raise an error if the parameters are invalid.
tests/test_ClubElo.py:45
Method
test_raises_on_bad_params
It should raise an error if the parameters are invalid.
tests/test_ClubElo.py:103
Method
test_raises_when_team_not_found
It should raise an error if the team is not found.
tests/test_ClubElo.py:77
Function
test_read_events
(fbref_ligue1: FBref)
tests/test_FBref.py:95
Function
test_read_events_yellow_for_manager
When a yellow card given to the manager, there is no <a> tag.
tests/test_FBref.py:99
Function
test_read_games
It should return a DataFrame with all games from the selected leagues and seasons.
tests/test_MatchHistory.py:8
Function
test_read_league_dict
(monkeypatch, tmp_path)
tests/test_config.py:66
Function
test_read_league_table
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:33
Function
test_read_leagues
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:8
Function
test_read_leagues
(understat_epl_1516: Understat)
tests/test_Understat.py:9
Function
test_read_lineup
(fbref_ligue1: FBref)
tests/test_FBref.py:113
Function
test_read_lineups
It should return a dataframe with the lineups.
tests/test_ESPN.py:28
Function
test_read_matchsheet
It should return a dataframe with the matchsheet data.
tests/test_ESPN.py:14
Function
test_read_matchsheet_bad_id
It should raise a ValueError if the selected game is not in the specified season.
tests/test_ESPN.py:19
Function
test_read_player_match_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:89
Function
test_read_player_match_stats
(understat_epl_1516: Understat)
tests/test_Understat.py:45
Function
test_read_player_match_stats_new_columns
(understat_epl_1516: Understat)
tests/test_Understat.py:50
Function
test_read_player_ratings
It should return a dataframe with the player ratings.
tests/test_SoFIFA.py:23
Function
test_read_player_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:74
Function
test_read_player_season_stats
(understat_epl_1516: Understat)
tests/test_Understat.py:39
Function
test_read_players
It should use the replacement names from teamname_replacements.json.
tests/test_SoFIFA.py:8
Function
test_read_players_replacement
It should use the replacement names from teamname_replacements.json.
tests/test_SoFIFA.py:13
Function
test_read_schedule
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:27
Function
test_read_schedule
(fbref_ligue1: FBref)
tests/test_FBref.py:78
Function
test_read_schedule
It should return a dataframe with the schedule of the season.
tests/test_ESPN.py:9
Function
test_read_schedule
(understat_epl_1516: Understat)
tests/test_Understat.py:27
Function
test_read_seasons
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:14
Function
test_read_seasons
(understat_epl_1516: Understat)
tests/test_Understat.py:15
Function
test_read_seasons_empty
()
tests/test_Sofascore.py:20
Function
test_read_seasons_empty
(understat_epl_9091: Understat)
tests/test_Understat.py:21
Function
test_read_shots
(understat_epl_1516: Understat)
tests/test_Understat.py:58
Function
test_read_team_match_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:47
Function
test_read_team_match_stats
(understat_epl_1516: Understat)
tests/test_Understat.py:33
Function
test_read_team_match_stats_alt_names
(fbref_ligue1: FBref)
tests/test_FBref.py:51
Function
test_read_team_ratings
It should return a dataframe with the team ratings.
tests/test_SoFIFA.py:18
Function
test_read_team_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:34
Function
test_read_teamnname_replacements
(monkeypatch, tmp_path)
tests/test_config.py:50
Method
test_respects_max_age_and_updates_cache
It should not use cached data if it is older than max_age.
tests/test_ClubElo.py:90
Function
test_season_pattern1a
()
tests/test_common.py:270
Function
test_season_pattern1a_warn
()
tests/test_common.py:275
Function
test_season_pattern1b
()
tests/test_common.py:286
Function
test_season_pattern1c
()
tests/test_common.py:293
Function
test_season_pattern2
()
tests/test_common.py:298
Function
test_season_pattern3
()
tests/test_common.py:305
Function
test_season_pattern4
()
tests/test_common.py:312
Function
test_season_pattern5
()
tests/test_common.py:319
Function
test_standardize_colnames
()
tests/test_common.py:212
Method
test_string_date
It should accept a date string in 'YYYY-MM-DD' format.
tests/test_ClubElo.py:32
Function
test_whoscored_events
(whoscored)
tests/test_Whoscored.py:12
Function
test_whoscored_missing_players
(whoscored)
tests/test_Whoscored.py:8
Method
test_with_teamname_replacements
It should use the replacement names from teamname_replacements.json.
tests/test_ClubElo.py:70
Method
test_with_valid_team
It should return a dataframe with the ELO history for the specified club.
tests/test_ClubElo.py:65
Function
understat_epl_1516
Return a correctly initialized instance of Understat filtered by league: Premier League.
tests/conftest.py:45
Function
understat_epl_9091
Return a correctly initialized instance of Understat filtered by league: Premier League.
tests/conftest.py:51
← previous
next →
101–200 of 201, ranked by callers