@@ -450,23 +450,23 @@ def _prepare_activity_columns(
450450 )
451451
452452 # For non-text items, drop the `_response` columns
453- response_cols = [col for col in df .columns if col .endswith ("_response" )]
453+ # response_cols = [col for col in df.columns if col.endswith("_response")]
454454 index_cols = [col for col in df .columns if col .endswith ("_index" )]
455- index_bases = {col .replace ("_index" , "" ) for col in index_cols }
456- text_item_response_cols = [
457- col
458- for col in response_cols
459- if col .replace ("_response" , "" ) not in index_bases
460- ]
461- df = df .select (
462- [
463- col
464- for col in df .columns
465- if not (
466- col .endswith ("_response" ) and col not in text_item_response_cols
467- )
468- ]
469- )
455+ # index_bases = {col.replace("_index", "") for col in index_cols}
456+ # text_item_response_cols = [
457+ # col
458+ # for col in response_cols
459+ # if col.replace("_response", "") not in index_bases
460+ # ]
461+ # df = df.select(
462+ # [
463+ # col
464+ # for col in df.columns
465+ # if not (
466+ # col.endswith("_response") and col not in text_item_response_cols
467+ # )
468+ # ]
469+ # )
470470
471471 # For items with `_index` but no `_score`, create `_score` from `_index`
472472 score_cols = [col for col in df .columns if col .endswith ("_score" )]
@@ -490,9 +490,9 @@ def _prepare_activity_columns(
490490 )
491491
492492 # Create REDCap `_response` columns from `_index` for select items (`_index + 1`)
493- for col in index_cols :
494- response_col = col .replace ("_index" , "_response" )
495- df = df .with_columns ([(pl .col (col ) + 1 ).alias (response_col )])
493+ # for col in index_cols:
494+ # response_col = col.replace("_index", "_response")
495+ # df = df.with_columns([(pl.col(col) + 1).alias(response_col)])
496496
497497 # Drop bare item columns that have _response versions
498498 response_bases = {
0 commit comments