Created
October 11, 2016 13:05
-
-
Save ohadle/8db6ac0162779a28266de5f5eab46736 to your computer and use it in GitHub Desktop.
Process CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = readcsv(joinpath(file_path, in_file); header=true) | |
map!(replace_nulls, data[1]) | |
out_f = open(joinpath(file_path, out_file), "w") | |
write(out_f, join(data[2], ",")) #headers | |
writecsv(out_f, data[1][1:1, :]) #unclear why this is needed | |
writecsv(out_f, data[1]) | |
close(out_f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added a newline char, now line 6 isn't needed: