guidopetri / chess-pipeline

Pulling games from the Lichess API into a PostgreSQL database for data analysis.
GNU General Public License v3.0
20 stars 2 forks source link

`EloByWeekday` fails when no games #60

Closed guidopetri closed 3 years ago

guidopetri commented 3 years ago

Specific error:

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

guidopetri commented 3 years ago

Steps:

guidopetri commented 3 years ago

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 3 years ago

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