Setting with : produces NaNs.

labels
junos 2022-03-01 12:02:57 +01:00
parent aedb8b6785
commit a3a4f04ffe
1 changed files with 2 additions and 2 deletions

View File

@ -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"]