guidopetri/chess-pipeline

`EloByWeekday` fails when no games

Closed this issue · 3 comments

Specific error:

TypeError: only size-1 arrays can be converted to Python scalars in pipeline_import/plots.py line 113

Steps:

  • write a test for this scenario
  • fix elobyweekday to return nothing?

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.

I'm separating the WinRatioByColor error into its own issue (#65).