data.get_pitching_career()
Return a per-season pitching career DataFrame for a MLB player ID string.
Usage
data.get_pitching_career(player_id)Columns: Season, Age, IP, ERA, WHIP, K/9, BB/9, HR/9, W, L, SO, BB. Multi-team seasons are aggregated by summing counting stats and IPouts; ERA and all per-9 rates are recomputed from the aggregated totals. inningsPitched from the API uses official notation (e.g. "180.2" means 180⅔ IP); it is converted to IPouts for aggregation and then back to decimal IP for the output column.