Merge branch 'master' into run_test_participant

labels
junos 2022-03-01 12:03:14 +01:00
commit ba7c3e620b
2 changed files with 3 additions and 3 deletions

View File

@ -635,5 +635,5 @@ PARAMS_FOR_ANALYSIS:
results-survey413767_final.csv # Belgium 2 results-survey413767_final.csv # Belgium 2
] ]
QUESTION_LIST: survey637813+question_text.csv QUESTION_LIST: survey637813+question_text.csv
FEATURES: [age, gender, startlanguage] FEATURES: [age, gender, startlanguage, demand, control, demand_control_ratio]
CATEGORICAL_FEATURES: [gender] CATEGORICAL_FEATURES: [gender]

View File

@ -80,7 +80,7 @@ if not participant_info.empty:
.rename(columns={"index": "question", 0: "score_original"}) .rename(columns={"index": "question", 0: "score_original"})
) )
# Extract question IDs from names such as JobEisen[3] # Extract question IDs from names such as JobEisen[3]
limesurvey_demand.loc[:, "qid"] = ( limesurvey_demand["qid"] = (
limesurvey_demand["question"].str.extract(r"\[(\d+)\]").astype(int) limesurvey_demand["question"].str.extract(r"\[(\d+)\]").astype(int)
) )
limesurvey_demand["score"] = limesurvey_demand["score_original"] limesurvey_demand["score"] = limesurvey_demand["score_original"]
@ -113,7 +113,7 @@ if not participant_info.empty:
.rename(columns={"index": "question", 0: "score_original"}) .rename(columns={"index": "question", 0: "score_original"})
) )
# Extract question IDs from names such as JobControle[3] # Extract question IDs from names such as JobControle[3]
limesurvey_control.loc[:, "qid"] = ( limesurvey_control["qid"] = (
limesurvey_control["question"].str.extract(r"\[(\d+)\]").astype(int) limesurvey_control["question"].str.extract(r"\[(\d+)\]").astype(int)
) )
limesurvey_control["score"] = limesurvey_control["score_original"] limesurvey_control["score"] = limesurvey_control["score_original"]