Skip to content

Various baseball visualization codes of little projects I'm trying

Notifications You must be signed in to change notification settings

ctmurphey/baseball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

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.

About

Various baseball visualization codes of little projects I'm trying

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published