Merge branch 'master' into run_test_participant
commit
ba7c3e620b
|
@ -635,5 +635,5 @@ PARAMS_FOR_ANALYSIS:
|
|||
results-survey413767_final.csv # Belgium 2
|
||||
]
|
||||
QUESTION_LIST: survey637813+question_text.csv
|
||||
FEATURES: [age, gender, startlanguage]
|
||||
FEATURES: [age, gender, startlanguage, demand, control, demand_control_ratio]
|
||||
CATEGORICAL_FEATURES: [gender]
|
||||
|
|
|
@ -80,7 +80,7 @@ if not participant_info.empty:
|
|||
.rename(columns={"index": "question", 0: "score_original"})
|
||||
)
|
||||
# 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["score"] = limesurvey_demand["score_original"]
|
||||
|
@ -113,7 +113,7 @@ if not participant_info.empty:
|
|||
.rename(columns={"index": "question", 0: "score_original"})
|
||||
)
|
||||
# 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["score"] = limesurvey_control["score_original"]
|
||||
|
|
Loading…
Reference in New Issue