Metrics

batting

calculate_wrc_manual(plate_appearances, woba, season):

Calculate wRC with manually inputted data

Plate_appearances (int)

Woba (float)

Season (int)

Return (float)

calculate_wraa_manual(plate_appearances, woba,  season):

Calculate wRAA with manually inputted data

Plate_appearances (int)

Woba (float)

Season (int)

Return (float)

calculate_woba_manual(plate_appearances, walks, hits_by_pitch, singles,
doubles, triples, homeruns, season):

Calculate wOBA with manually inputted data

Plate_appearances (int)

Walks (float)

Hits_by_pitch (int)

Singles (int)

Doubles (int)

Triples (int)

Homeruns (int)

Season (int)

Return (float)

add_batting_metrics(df):

Adds all available additional batting metrics

Return (pd.DataFrame)

pitching

calculate_fip_manual(homeruns, walks, hit_batters, strikeouts, innings_pitched, season):

Calculate wOBA with manually inputted data

Homeruns (int)

Walks (int)

Hit_batters (int)

Strikeouts (int)

Innings_pitched (int)

Season (int)

Returns (float)

add_pitching_metrics(df):

Adds all available additional pitching metrics

Df (pd.DataFrame)

Return (pd.DataFrame)