Skip to content

Commit

Permalink
Fix year without successful participants
Browse files Browse the repository at this point in the history
  • Loading branch information
BorysekOndrej committed May 20, 2022
1 parent 164688d commit 90bec66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notebooks/years.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@
"successful_participants = pd.DataFrame({\n",
" 'Successful Participants Count': fdf[fdf['RelativePoints'] >= 0.6].groupby('Year').RelativePoints.count(),\n",
"})\n",
"successful_participants.plot.bar(stacked=True);"
"\n",
"if len(successful_participants) == 0:\n",
" print(\"NO SUCCESFULL PARTICIPANTS YET\")\n",
"else:\n",
" successful_participants.plot.bar(stacked=True);"
]
},
{
Expand Down

0 comments on commit 90bec66

Please sign in to comment.