Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,9 @@ CSV_FILENAME = "user_selections.csv"
|
|
8 |
|
9 |
def assign_samples(csv_path):
|
10 |
df = pd.read_csv(csv_path)
|
11 |
-
group_1 = df[(df["pool_pos"] == 1) & (~df["question_category"].str.endswith("_B"))].head(
|
12 |
-
group_2 = df[(df["pool_pos"] == 2) & (~df["question_category"].str.endswith("_B"))].head(
|
13 |
-
group_3 = df[(df["pool_pos"] == 3) & (~df["question_category"].str.endswith("_B"))].head(
|
14 |
return {
|
15 |
"Bernardo": group_1,
|
16 |
"Alessandro": group_1,
|
|
|
8 |
|
9 |
def assign_samples(csv_path):
|
10 |
df = pd.read_csv(csv_path)
|
11 |
+
group_1 = df[(df["pool_pos"] == 1) & (~df["question_category"].str.endswith("_B"))].head(10)
|
12 |
+
group_2 = df[(df["pool_pos"] == 2) & (~df["question_category"].str.endswith("_B"))].head(10)
|
13 |
+
group_3 = df[(df["pool_pos"] == 3) & (~df["question_category"].str.endswith("_B"))].head(10)
|
14 |
return {
|
15 |
"Bernardo": group_1,
|
16 |
"Alessandro": group_1,
|