`EloByWeekday` fails when no games
Closed this issue · 3 comments
guidopetri commented
Specific error:
TypeError: only size-1 arrays can be converted to Python scalars
in pipeline_import/plots.py line 113
guidopetri commented
Steps:
- write a test for this scenario
- fix elobyweekday to return nothing?
guidopetri commented
I believe I have a similar issue in WinRatioByColor
:
File "chess-pipeline/src/newsletter.py", line 73, in run
100 * color_stats.iloc[1][0],
IndexError: single positional indexer is out-of-bounds
If there's only one game, then the function breaks.
guidopetri commented
I'm separating the WinRatioByColor
error into its own issue (#65).