This website was built by me, Tim Aldred, during my CodeLancashire bootcamp studies.
It uses Python to manipulate the data, and Flask to send it to the front end. The website is built and styled with html and css. It uses javascript, React and next.js to bring it all together.
With thanks to Andre for the Python lessons and to Adi for the React parts.
None of this would have been possible without the dataset, kindly uploaded to Kaggle by Logan Custer.
The original data can be found here.
The data isn't perfect. There are a few formatting issues which I used Python to resolve, and a few missing data points which limit the scope of what this website can do.
For example, OPS, a popular stat at present, can't be calculated from what's available here.
And, as far as I can tell, only one team and position is listed per player per season, even though players can and do switch teams and positions mid-season.
That being said, it's a pretty comprehensive history of baseball and was made available for free, and for that I'm grateful.