Closed smadigan91 closed 6 years ago
so this seems to happen when getting a log for a pitcher who has pitched 0.0 innings but let up runs/hits/walks/something. The issue is that I'm calculating ERA and WHIP on every single indexed game row, so instead what I should be doing is waiting til all the game rows have been indexed to do this (in the case of /last) and if it's just an individual game log, setting ERA / WHIP to "INF" if the pitcher allowed base runners or runs during their 0.0 innings pitched
but whyyyyyy