Wolfram Data Repository
Immediate Computable Access to Curated Contributed Data
Details about every regular-season major league home run hit by Babe Ruth
"BattingOrderPosition" | Ruth's batting order position |
"BoxScoreURL" | baseball-reference url of game box score |
"CareerCount" | count of Ruth's home runs in his career |
"Date" | date of the game |
"Description" | brief description including direction and baserunners |
"FieldingPosition" | Ruth's fielding position |
"GameCount" | count of Ruth's home runs in the game |
"Inning" | inning where "t" and "b" indicate top and bottom |
"Location" | whether Ruth was home or away |
"Notes" | notes including walk-off and inside-the-park |
"OnBase" | position of runners on base |
"Opponent" | opposing team identifier |
"Pitcher" | name of opposing pitcher |
"PitcherURL" | baseball-reference url for the opposing pitcher |
"RBIs" | number of RBIs for Ruth |
"Score" | game score preceding the home run |
"Team" | Ruth's team |
"WinExpectency" | win expectency of Ruth's team following the home run |
"WinProbAdded" | win probability added by the home run |
"YearCount" | count of Ruth's home runs in the season |
"Biography" | wikipedia article about Ruth |
"Image" | a photo of Ruth |
"Timeline" | a TimelinePlot of Ruth's home runs |
Get a Dataset containing rows for each home run:
In[1]:= | ![]() |
Out[1]= | ![]() |
Find the most common opponents:
In[2]:= | ![]() |
Out[2]= | ![]() |
Get a timeline plot of home runs:
In[3]:= | ![]() |
Out[3]= | ![]() |
Retrieve an image of the Bambino whacking a famous dinger:
In[4]:= | ![]() |
Out[4]= | ![]() |
Get a random row:
In[5]:= | ![]() |
Out[5]= | ![]() |
See the pattern of the data:
In[6]:= | ![]() |
Out[6]= | ![]() |
Plot home runs by inning, noting that Ruth typically hit third in the lineup skewing his appearances toward the first and away from the second inning:
In[7]:= | ![]() |
Out[7]= | ![]() |
Ruth hit more home runs against the Detroit Tigers than any other team:
In[8]:= | ![]() |
Out[8]= | ![]() |
The total number of home runs. For decades this was considered an unbreakable record:
In[9]:= | ![]() |
Out[9]= | ![]() |
Find his "walk off" home runs by finding HRs hit in the bottom of the ninth inning (or later) with the score difference less than the number of RBIs:
In[10]:= | ![]() |
Out[10]= | ![]() |
Compare it with the baseball-reference notes:
In[11]:= | ![]() |
Out[11]= | ![]() |
Find the most common values for several properties:
In[12]:= | ![]() |
Out[12]= | ![]() |
Bob, "Babe Ruth Home Runs" from the Wolfram Data Repository (2021)