MCPcopy Create free account

hub / github.com/probberechts/soccerdata / functions

Functions201 in github.com/probberechts/soccerdata

Methodleagues
Return a list of selected leagues.
soccerdata/fbref.py:112
Methodleagues
Return a list of selected leagues.
soccerdata/_common.py:450
Functionmatch_epl_5y
Return a MatchHistory instance for the last 5 years of the EPL.
tests/conftest.py:33
Functionmock_tls_client
()
tests/test_common.py:25
Methodprocess_four_digit_year
Process a 4-digit string like '1994' or '9495'.
soccerdata/_common.py:135
Methodprocess_full_year_range
Process a range of 4-digit strings like '1994-1995'.
soccerdata/_common.py:169
Methodprocess_partial_year_range
Process a range of 4-digit and 2-digit string like '1994-95'.
soccerdata/_common.py:175
Methodprocess_short_year_range
Process a range of 2-digit strings like '94-95'.
soccerdata/_common.py:181
Methodprocess_two_digit_year
Process a 2-digit string like '94'.
soccerdata/_common.py:159
Methodread_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
Methodread_leagues
Retrieve the selected leagues from the datasource. Returns ------- pd.DataFrame
soccerdata/understat.py:96
Methodread_lineup
Retrieve lineups for the selected leagues and seasons. Parameters ---------- match_id : int or list of int, optional
soccerdata/fbref.py:809
Methodread_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
Methodread_player_season_stats
Retrieve the player season stats for the selected leagues and seasons. Parameters ---------- force_cache : bool
soccerdata/understat.py:366
Methodread_schedule
Retrieve the game schedule for the selected leagues and seasons. Parameters ---------- force_cache : bool By def
soccerdata/sofascore.py:182
Methodread_team_match_stats
Retrieve the team match stats for the selected leagues and seasons. Parameters ---------- force_cache : bool By
soccerdata/understat.py:267
Methodseasons
Return a list of selected seasons.
soccerdata/_common.py:455
Functionsofascore_epl_1516
Return a correctly initialized instance of Sofascore filtered by league: Premier League.
tests/conftest.py:57
Functionsofifa_bundesliga
Return a correctly initialized instance of SoFIFA filtered by league: Bundesliga.
tests/conftest.py:15
Functiontest_add_alt_team_names
()
tests/test_common.py:195
Functiontest_add_standardize_team_name
()
tests/test_common.py:202
Functiontest_available_leagues
()
tests/test_FBref.py:10
Functiontest_combine_big5
()
tests/test_FBref.py:157
Functiontest_combine_big5_player_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:201
Functiontest_combine_big5_team_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:178
Functiontest_concat
()
tests/test_FBref.py:117
Functiontest_concat_with_forfeited_game
()
tests/test_FBref.py:147
Methodtest_datetime_date
It should accept a datetime object.
tests/test_ClubElo.py:40
Methodtest_default
It should return a dataframe with the latest ELO ratings if no date is given.
tests/test_ClubElo.py:27
Functiontest_download_and_save_cached
(tmp_path, mock_tls_client)
tests/test_common.py:79
Functiontest_download_and_save_no_cache
(tmp_path, mock_tls_client)
tests/test_common.py:97
Functiontest_download_and_save_no_cache_filepath
(tmp_path, mock_tls_client)
tests/test_common.py:124
Functiontest_download_and_save_no_store_no_filepath
(mock_tls_client)
tests/test_common.py:113
Functiontest_download_and_save_not_cached
(tmp_path, mock_tls_client)
tests/test_common.py:66
Functiontest_download_and_save_variable_no_store_no_filepath
(mock_tls_client)
tests/test_common.py:139
Functiontest_env_loglevel
(monkeypatch)
tests/test_config.py:44
Functiontest_env_nocache
(monkeypatch)
tests/test_config.py:16
Functiontest_env_nostore
(monkeypatch)
tests/test_config.py:30
Functiontest_env_soccerdata_dir
(monkeypatch, tmp_path)
tests/test_config.py:10
Methodtest_handles_special_characters_in_team_names
It should be able to deal with special characters in team names.
tests/test_ClubElo.py:82
Functiontest_id_not_in_season
It should raise a ValueError if the selected game is not in the specified season.
tests/test_ESPN.py:33
Functiontest_is_complete
()
tests/test_common.py:239
Functiontest_is_complete_default_value
(mocker)
tests/test_common.py:253
Functiontest_is_complete_undefined_league
(mocker)
tests/test_common.py:260
Functiontest_make_game_id
()
tests/test_common.py:180
Functiontest_missing_events
()
tests/test_FBref.py:107
Methodtest_raises_on_bad_params
It should raise an error if the parameters are invalid.
tests/test_ClubElo.py:45
Methodtest_raises_on_bad_params
It should raise an error if the parameters are invalid.
tests/test_ClubElo.py:103
Methodtest_raises_when_team_not_found
It should raise an error if the team is not found.
tests/test_ClubElo.py:77
Functiontest_read_events
(fbref_ligue1: FBref)
tests/test_FBref.py:95
Functiontest_read_events_yellow_for_manager
When a yellow card given to the manager, there is no <a> tag.
tests/test_FBref.py:99
Functiontest_read_games
It should return a DataFrame with all games from the selected leagues and seasons.
tests/test_MatchHistory.py:8
Functiontest_read_league_dict
(monkeypatch, tmp_path)
tests/test_config.py:66
Functiontest_read_league_table
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:33
Functiontest_read_leagues
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:8
Functiontest_read_leagues
(understat_epl_1516: Understat)
tests/test_Understat.py:9
Functiontest_read_lineup
(fbref_ligue1: FBref)
tests/test_FBref.py:113
Functiontest_read_lineups
It should return a dataframe with the lineups.
tests/test_ESPN.py:28
Functiontest_read_matchsheet
It should return a dataframe with the matchsheet data.
tests/test_ESPN.py:14
Functiontest_read_matchsheet_bad_id
It should raise a ValueError if the selected game is not in the specified season.
tests/test_ESPN.py:19
Functiontest_read_player_match_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:89
Functiontest_read_player_match_stats
(understat_epl_1516: Understat)
tests/test_Understat.py:45
Functiontest_read_player_match_stats_new_columns
(understat_epl_1516: Understat)
tests/test_Understat.py:50
Functiontest_read_player_ratings
It should return a dataframe with the player ratings.
tests/test_SoFIFA.py:23
Functiontest_read_player_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:74
Functiontest_read_player_season_stats
(understat_epl_1516: Understat)
tests/test_Understat.py:39
Functiontest_read_players
It should use the replacement names from teamname_replacements.json.
tests/test_SoFIFA.py:8
Functiontest_read_players_replacement
It should use the replacement names from teamname_replacements.json.
tests/test_SoFIFA.py:13
Functiontest_read_schedule
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:27
Functiontest_read_schedule
(fbref_ligue1: FBref)
tests/test_FBref.py:78
Functiontest_read_schedule
It should return a dataframe with the schedule of the season.
tests/test_ESPN.py:9
Functiontest_read_schedule
(understat_epl_1516: Understat)
tests/test_Understat.py:27
Functiontest_read_seasons
(sofascore_epl_1516: Sofascore)
tests/test_Sofascore.py:14
Functiontest_read_seasons
(understat_epl_1516: Understat)
tests/test_Understat.py:15
Functiontest_read_seasons_empty
()
tests/test_Sofascore.py:20
Functiontest_read_seasons_empty
(understat_epl_9091: Understat)
tests/test_Understat.py:21
Functiontest_read_shots
(understat_epl_1516: Understat)
tests/test_Understat.py:58
Functiontest_read_team_match_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:47
Functiontest_read_team_match_stats
(understat_epl_1516: Understat)
tests/test_Understat.py:33
Functiontest_read_team_match_stats_alt_names
(fbref_ligue1: FBref)
tests/test_FBref.py:51
Functiontest_read_team_ratings
It should return a dataframe with the team ratings.
tests/test_SoFIFA.py:18
Functiontest_read_team_season_stats
(fbref_ligue1: FBref, stat_type: str)
tests/test_FBref.py:34
Functiontest_read_teamnname_replacements
(monkeypatch, tmp_path)
tests/test_config.py:50
Methodtest_respects_max_age_and_updates_cache
It should not use cached data if it is older than max_age.
tests/test_ClubElo.py:90
Functiontest_season_pattern1a
()
tests/test_common.py:270
Functiontest_season_pattern1a_warn
()
tests/test_common.py:275
Functiontest_season_pattern1b
()
tests/test_common.py:286
Functiontest_season_pattern1c
()
tests/test_common.py:293
Functiontest_season_pattern2
()
tests/test_common.py:298
Functiontest_season_pattern3
()
tests/test_common.py:305
Functiontest_season_pattern4
()
tests/test_common.py:312
Functiontest_season_pattern5
()
tests/test_common.py:319
Functiontest_standardize_colnames
()
tests/test_common.py:212
Methodtest_string_date
It should accept a date string in 'YYYY-MM-DD' format.
tests/test_ClubElo.py:32
Functiontest_whoscored_events
(whoscored)
tests/test_Whoscored.py:12
Functiontest_whoscored_missing_players
(whoscored)
tests/test_Whoscored.py:8
Methodtest_with_teamname_replacements
It should use the replacement names from teamname_replacements.json.
tests/test_ClubElo.py:70
Methodtest_with_valid_team
It should return a dataframe with the ELO history for the specified club.
tests/test_ClubElo.py:65
Functionunderstat_epl_1516
Return a correctly initialized instance of Understat filtered by league: Premier League.
tests/conftest.py:45
Functionunderstat_epl_9091
Return a correctly initialized instance of Understat filtered by league: Premier League.
tests/conftest.py:51
← previousnext →101–200 of 201, ranked by callers