jtwedt / Climate-Conversations

an app to facilitate conversations about climate events
4 stars 2 forks source link

optimize finding events #8

Closed kdoroschak closed 7 years ago

kdoroschak commented 7 years ago

multiple ways to do this. the easiest/fastest fix would be to filter the pandas table by year first and then randomly select a row from the remaining.

another option: keep a list of event indices that have not been asked yet. filter by year, and take the intersection of the possible events by year and events remaining in the game.