Skip to content

Commit

Permalink
applymap is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Dec 19, 2023
1 parent 0af78af commit 7c84690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clinical_etl/CSVConvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c84690

Please sign in to comment.