data¶
pybbda data module
some data, and blah
-
class
pybbda.data.
RetrosheetData
(data_root=None)[source]¶ -
-
property
engine
¶
-
property
event_files
¶
-
init
(*args, **kwargs)¶
-
property
-
class
pybbda.data.
StatcastData
(data_path=None)[source]¶ -
-
get_statcast_daily
(player_type, start_date, end_date, player_id='')[source]¶ Gets pitch level data from baseball savant query page. player_type can be batter or pitcher. The fetched data are the same but the player that the player_name column refers to is different. start_date and end_date are inclusive, for example to fetch data from 2019-05-01 only, set start_date = end_date = “2018-05-01”. If player_id is specified. then only data for pitches involving that player will be returned. The id here is the MLBAM player id which is an integer.
- Parameters
player_type – str. can be batter or pitcher
start_date – str in %Y-%m-%d format
end_date – str in %Y-%m-%d format
player_id – str or int. mlbam player id
- Returns
pandas data frame
-
init
(*args, **kwargs)¶
-