Skip to content

Commit

Permalink
Trim whitespace from column values before using in subsequent steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavanba committed Jun 14, 2024
1 parent d8d4ee9 commit f73d26d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/filtering/filtering.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ unlink(PARQUET_FILTERED_LOCATION, recursive = T, force = T)

synLogin()

pii_to_drop <- synGet(PII_COLS_TO_DROP)$path %>% read.csv()
pii_to_drop <-
synGet(PII_COLS_TO_DROP)$path %>%
read.csv() %>%
dplyr::mutate(column_to_be_dropped = trimws(column_to_be_dropped))

datasets_to_filter <- pii_to_drop$dataset %>% unique()
cols_to_drop <- lapply(datasets_to_filter, function(x) {
Expand Down

0 comments on commit f73d26d

Please sign in to comment.