Skip to content

Commit

Permalink
Merge pull request #34 from pranavanba/main
Browse files Browse the repository at this point in the history
Trim whitespace from column values before using in subsequent steps
  • Loading branch information
pranavanba authored Jun 14, 2024
2 parents d8d4ee9 + f73d26d commit 5f76724
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 5f76724

Please sign in to comment.