Initial commit

This commit is contained in:
Nate Bowman
2026-10-07 17:28:39 -04:00
commit 9d5cc75426
8 changed files with 248 additions and 0 deletions

21
website/spreadsheet.py Normal file
View File

@@ -0,0 +1,21 @@
import pandas as pd
from website.download import get_games_from_steam, get_max_players_data
def get_games_for_people(people: list) -> (list, list):
dfg = get_games_from_steam(people)
dfp = get_max_players_data()
all_have = dfg.index[(dfg[people] > 0).all(axis=1)]
enough_slots = dfp.index[dfp['Players'] >= len(people)]
candidates = all_have[all_have.isin(enough_slots)]
candidates = sorted(candidates.to_list())
unknown = all_have[~all_have.isin(dfp.index)]
unknown = sorted(unknown.to_list())
return candidates, unknown