Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

BaseballReferenceData

Guides

  • BaseballReferenceData

Symbols

  • PlayerHomers
  • PlayerSearch
  • PlayerStandardBatting
  • TeamPaths
  • TeamYearSchedule
Bob`BaseballReferenceData`
TeamYearSchedule
​
​
TeamYearSchedule
[team,year]
gives the schedule for the specified team and year as a Dataset.
​
​
TeamYearSchedule[team,year,prop]
​ returns the property prop.
​
Details

Examples  
(1)
Basic Examples  
(1)
Get a Dataset showing the results for the Cardinals in 2021:
In[1]:=
Bob`BaseballReferenceData`TeamYearSchedule["Cardinals",2021]
Out[1]=
GameNumber
ScoreboardURL
Date
BoxScoreURL
HomeGame
OpponentURL
Opponent
Win
Runs
RunsAllowed
1
https://www.baseball-reference.com/b
oxes/?date=202...
Thu 1 Apr 2021
https://www.baseball-reference.com/bo
xes/CIN/CIN20...
False
https://www.baseball-reference.com/te
ams/CIN/2021....
CIN
True
11
6
2
https://www.baseball-reference.com/b
oxes/?date=202...
Sat 3 Apr 2021
https://www.baseball-reference.com/bo
xes/CIN/CIN20...
False
https://www.baseball-reference.com/te
ams/CIN/2021....
CIN
False
6
9
3
https://www.baseball-reference.com/b
oxes/?date=202...
Sun 4 Apr 2021
https://www.baseball-reference.com/bo
xes/CIN/CIN20...
False
https://www.baseball-reference.com/te
ams/CIN/2021....
CIN
False
1
12
4
https://www.baseball-reference.com/b
oxes/?date=202...
Mon 5 Apr 2021
https://www.baseball-reference.com/bo
xes/MIA/MIA20...
False
https://www.baseball-reference.com/te
ams/MIA/2021....
MIA
True
4
1
5
https://www.baseball-reference.com/b
oxes/?date=202...
Tue 6 Apr 2021
https://www.baseball-reference.com/bo
xes/MIA/MIA20...
False
https://www.baseball-reference.com/te
ams/MIA/2021....
MIA
True
4
2
6
https://www.baseball-reference.com/b
oxes/?date=202...
Wed 7 Apr 2021
https://www.baseball-reference.com/bo
xes/MIA/MIA20...
False
https://www.baseball-reference.com/te
ams/MIA/2021....
MIA
True
7
0
7
https://www.baseball-reference.com/b
oxes/?date=202...
Thu 8 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/MIL/2021....
MIL
True
3
1
8
https://www.baseball-reference.com/b
oxes/?date=202...
Sat 10 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/MIL/2021....
MIL
False
5
9
9
https://www.baseball-reference.com/b
oxes/?date=202...
Sun 11 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/MIL/2021....
MIL
False
3
9
10
https://www.baseball-reference.com/b
oxes/?date=202...
Mon 12 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/WSN/2021....
WSN
False
2
5
11
https://www.baseball-reference.com/b
oxes/?date=202...
Tue 13 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/WSN/2021....
WSN
True
14
3
12
https://www.baseball-reference.com/b
oxes/?date=202...
Wed 14 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/WSN/2021....
WSN
False
0
6
13
https://www.baseball-reference.com/b
oxes/?date=202...
Fri 16 Apr 2021
https://www.baseball-reference.com/bo
xes/PHI/PHI20...
False
https://www.baseball-reference.com/te
ams/PHI/2021....
PHI
False
2
9
14
https://www.baseball-reference.com/b
oxes/?date=202...
Sat 17 Apr 2021
https://www.baseball-reference.com/bo
xes/PHI/PHI20...
False
https://www.baseball-reference.com/te
ams/PHI/2021....
PHI
True
9
4
15
https://www.baseball-reference.com/b
oxes/?date=202...
Sun 18 Apr 2021
https://www.baseball-reference.com/bo
xes/PHI/PHI20...
False
https://www.baseball-reference.com/te
ams/PHI/2021....
PHI
False
0
2
16
https://www.baseball-reference.com/b
oxes/?date=202...
Mon 19 Apr 2021
https://www.baseball-reference.com/bo
xes/WAS/WAS20...
False
https://www.baseball-reference.com/te
ams/WSN/2021....
WSN
True
12
5
17
https://www.baseball-reference.com/b
oxes/?date=202...
Tue 20 Apr 2021
https://www.baseball-reference.com/bo
xes/WAS/WAS20...
False
https://www.baseball-reference.com/te
ams/WSN/2021....
WSN
False
2
3
18
https://www.baseball-reference.com/b
oxes/?date=202...
Wed 21 Apr 2021
https://www.baseball-reference.com/bo
xes/WAS/WAS20...
False
https://www.baseball-reference.com/te
ams/WSN/2021....
WSN
False
0
1
19
https://www.baseball-reference.com/b
oxes/?date=202...
Fri 23 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/CIN/2021....
CIN
True
5
4
20
https://www.baseball-reference.com/b
oxes/?date=202...
Sat 24 Apr 2021
https://www.baseball-reference.com/bo
xes/SLN/SLN20...
—
https://www.baseball-reference.com/te
ams/CIN/2021....
CIN
True
2
0
rows 1–20 of
162
columns 1–10 of
26
Find the Cardinals longest winning streak in 2021:
In[2]:=
Bob`BaseballReferenceData`TeamYearSchedule["Cardinals",2021,"LongestWinStreak"]
Out[2]=
17
Find the Cubs longest losing streak in 2021:
In[3]:=
Bob`BaseballReferenceData`TeamYearSchedule["Cubs",2021,"LongestWinStreak"]
Out[3]=
7
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com