From 7c84690db2c1d692619c1bb05e3b91de02361dad Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Mon, 18 Dec 2023 20:40:26 -0800 Subject: [PATCH] applymap is deprecated --- src/clinical_etl/CSVConvert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clinical_etl/CSVConvert.py b/src/clinical_etl/CSVConvert.py index 6ac1ecf..91e9f6a 100644 --- a/src/clinical_etl/CSVConvert.py +++ b/src/clinical_etl/CSVConvert.py @@ -316,8 +316,8 @@ def process_data(raw_csv_dfs): print(f"Processing sheet {page}...") df = raw_csv_dfs[page].dropna(axis='index', how='all') \ .dropna(axis='columns', how='all') \ - .applymap(str) \ - .applymap(lambda x: x.strip()) \ + .map(str) \ + .map(lambda x: x.strip()) \ .drop_duplicates() # drop absolutely identical lines # Sort by identifier and then tag any dups