Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 833 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 833 Bytes

Various Baseball Codes

A collective repository of various smaller "just for fun" baseball coding projects.

mets-season-series

Graphically displays the current status of all of the season series matchups for my favorite team: the New York Mets. Data is fetched via the MLB-StatsAPI library and loaded into a pandas DataFrame. To not have to fetch every time, the is done in make_schedule.py which stores the data into mets_2022.csv. piecharts.py and stackedbar.py then read this csv and visualizes how the Mets have performed against other teams as a series of pie charts and a stacked bar graph, respectively. All images are stored in figures. There are two different plots made because, while the stacked bar graph better represents the games equally, the pie charts feel more satisfying as they slowly fill up.