FanGraphs Spotlight: Custom Comparable Downloads

Sam Navarro-USA TODAY Sports

FanGraphs Members can download any of our stats over any time frame. One of my favorite ways to use the download feature is to compare information over unique time frames. For today’s example, I’ll compare the first- and second-half fastball traits of a few Cardinals starting pitchers.

I’m going to show an example comparing two time frames for just one team, but I usually use multiple time frames (e.g. previous two seasons, first half, last month) for hundreds of pitchers. And while this comparison is especially helpful to fantasy players, anyone can use the procedure for their player analysis. One key in analyzing players, especially pitchers, is selecting unique time frames. Most people will compare first- and second-half stats, but I’ve found hidden gems by using three to eight week intervals. No site provides odd intervals in their default time frames, like the first four months to the last two, or the season divided into quarters. These data downloads help facilitate that sort of analysis. Again, the key is to find breakouts that others might not have identified.

Here is how to compare the 2023 fastball stats of this season’s Cardinals starters. And remember, this can be done with any group of pitchers and stats.

Step 1. Go to the 2023 pitching leaderboard and select “Custom Players.” Add the players.

Step 2. Pick the stats you want to use. I’m using strikeout rate, fastball velocity, bot fastball stuff, and fastball Stuff+.

You Aren't a FanGraphs Member
It looks like you aren't yet a FanGraphs Member (or aren't logged in). We aren't mad, just disappointed.
We get it. You want to read this article. But before we let you get back to it, we'd like to point out a few of the good reasons why you should become a Member.
1. Ad Free viewing! We won't bug you with this ad, or any other.
2. Unlimited articles! Non-Members only get to read 10 free articles a month. Members never get cut off.
3. Dark mode and Classic mode!
4. Custom player page dashboards! Choose the player cards you want, in the order you want them.
5. One-click data exports! Export our projections and leaderboards for your personal projects.
6. Remove the photos on the home page! (Honestly, this doesn't sound so great to us, but some people wanted it, and we like to give our Members what they want.)
7. Even more Steamer projections! We have handedness, percentile, and context neutral projections available for Members only.
8. Get FanGraphs Walk-Off, a customized year end review! Find out exactly how you used FanGraphs this year, and how that compares to other Members. Don't be a victim of FOMO.
9. A weekly mailbag column, exclusively for Members.
10. Help support FanGraphs and our entire staff! Our Members provide us with critical resources to improve the site and deliver new features!
We hope you'll consider a Membership today, for yourself or as a gift! And we realize this has been an awfully long sales pitch, so we've also removed all the other ads in this article. We didn't want to overdo it.

Step 3. Pick your desired time frame and export the information. In this example, first- and second-half stats are used, but remember, the custom date range feature allows you to select other time frames.

Note: Some information may be missing for some players, especially if they missed time in the minors or because of injury. In this instance, Steven Matz doesn’t throw a four-seam fastball, just a sinker.

Step 4. Import the downloads into a single spreadsheet. In this example, I imported them into Google Sheets to share the information.

Step 5. Put the names and stats you want to compare into separate sheets. For now, include one of the IDs. They can be hidden in a future step.

Step 6. Link the various players and time frames. This is the “hard” step, but it needs to be mastered. The easiest way to pull the information is with the XLOOKUP command. The command is intuitive and only has three inputs. The first input is a value to match, normally a player ID (FG or MLBAMID) or name.

The second value is from another column that contains the same ID/name in a sheet that includes the desired stats. In this instance, Column I in Sheet 1H has the MLBAMID. The third value is the column, C in this instance, with the desired corresponding stat.

The XLOOKUP command is looking for the contents of C16 (543243) in column I of sheet 1H and returning the corresponding value in column C.

Step 7. Bring in all the stats and find the first-half to second-half differences for each of the pitchers.

Step 8. Compare all the differences in one table. In this instance, I just linked the cells, but if the table is large, XLOOKUP could be used again.

Step 9. Make the table all pretty. Open Conditional Formatting …

… and set the positive values to green and the negative ones to red.

Step 10. Hide the ID numbers.

Step 11. Enjoy the fruits of your labor.





Jeff, one of the authors of the fantasy baseball guide,The Process, writes for RotoGraphs, The Hardball Times, Rotowire, Baseball America, and BaseballHQ. He has been nominated for two SABR Analytics Research Award for Contemporary Analysis and won it in 2013 in tandem with Bill Petti. He has won four FSWA Awards including on for his Mining the News series. He's won Tout Wars three times, LABR twice, and got his first NFBC Main Event win in 2021. Follow him on Twitter @jeffwzimmerman.

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Travis IceMember since 2018
1 year ago

Love it!