Skip to content

Commit 0657969

Browse files
yibeichansatra
andauthored
Update reproschema/redcap2reproschema.py
Co-authored-by: Satrajit Ghosh <[email protected]>
1 parent 2fd97dd commit 0657969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reproschema/redcap2reproschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def process_row(
419419
# }
420420
# )
421421

422-
elif key in ADDITIONAL_NOTES_LIST and value:
422+
elif key in ADDITIONAL_NOTES_LIST and value and not pd.isna(value):
423423
# Convert value to string, handling NaN explicitly
424424
value_str = str(value).strip()
425425
if not value_str: # Skip empty strings

0 commit comments

Comments
 (0)