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