Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Use pd NaT when using deidentified samples #199

Merged
merged 3 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/cttso-ica-to-pieriandx-cdk/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ are nested under deploy/cttso-ica-to-pieriandx-cdk.
* Resolves https://github.com/umccr/cttso-ica-to-pieriandx/issues/190
* Fix deidentified samples where wrong keys used for study id and participant id (https://github.com/umccr/cttso-ica-to-pieriandx/pull/194)
* Resolves https://github.com/umccr/cttso-ica-to-pieriandx/issues/193
* Fix deidentified samples where NAT instead of NaT null value was used (https://github.com/umccr/cttso-ica-to-pieriandx/pull/198)
* Resolves https://github.com/umccr/cttso-ica-to-pieriandx/issues/197

### Workarounds
* Don't submit NTC samples (https://github.com/umccr/cttso-ica-to-pieriandx/pull/195)
Expand Down
2 changes: 1 addition & 1 deletion utils/accession.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def sanitise_data_frame(input_df: pd.DataFrame) -> pd.DataFrame:
input_df["date_of_birth"] = input_df.apply(
lambda x: x.date_of_birth
if hasattr(x, "date_of_birth")
else pd.NAT,
else pd.NaT,
axis="columns"
)
input_df["first_name"] = input_df.apply(
Expand Down