Takes a CSV file as input, reads the file, normalizes its contents, and writes to a new file with the normalized content.
-
Clone the repo
-
Run following commands:
bundle Install ruby csv_normalizer.rb "#{file-name.csv}" e.g. ruby csv_normalizer.rb "sample.csv"
A file named "normalized-#{file-name}.csv" (e.g. "normalized-sample.csv") will be created with the normalized contents.
rspec
- Error handling
- Drop rows that contain unparseable data