Rename features and write baseline_interim.

labels
junos 2022-03-08 15:10:36 +01:00
parent a3a4f04ffe
commit d8e9a309f7
1 changed files with 8 additions and 6 deletions

View File

@ -94,9 +94,9 @@ if not participant_info.empty:
+ LIMESURVEY_JCQ_MIN
- limesurvey_demand.loc[rows_demand_reverse, "score_original"]
)
pd.concat([baseline_interim, limesurvey_demand], axis=0, ignore_index=True)
baseline_interim = pd.concat([baseline_interim, limesurvey_demand], axis=0, ignore_index=True)
if "demand" in requested_features:
baseline_features.loc[0, "limesurvey_demand"] = limesurvey_demand[
baseline_features.loc[0, "demand"] = limesurvey_demand[
"score"
].sum()
@ -127,9 +127,11 @@ if not participant_info.empty:
+ LIMESURVEY_JCQ_MIN
- limesurvey_control.loc[rows_control_reverse, "score_original"]
)
pd.concat([baseline_interim, limesurvey_control], axis=0, ignore_index=True)
baseline_interim = pd.concat([baseline_interim, limesurvey_control], axis=0, ignore_index=True)
if "control" in requested_features:
baseline_features.loc[0, "limesurvey_control"] = limesurvey_control[
baseline_features.loc[0, "control"] = limesurvey_control[
"score"
].sum()
@ -165,10 +167,10 @@ if not participant_info.empty:
limesurvey_quartile = np.nan
baseline_features.loc[
0, "limesurvey_demand_control_ratio"
0, "demand_control_ratio"
] = limesurvey_demand_control_ratio
baseline_features.loc[
0, "limesurvey_demand_control_ratio_quartile"
0, "demand_control_ratio_quartile"
] = limesurvey_quartile
if not baseline_interim.empty: