What is the most elegant way to replace a value(say 99) to NA in a DataFrame in Julia?
I am considering using an iterator to skim each row and check each value for 99, etc. I would like to know if there is a better way to do this.
using Taro
Taro.init()
tempdf =Taro.readxl("/path/to/xls/", "Sheet1", "A1:CW24983"; header=false)
#Need one line command to replace all the 99s in the 24983 X 101 DataFrame to NA
Here is the MWE :
Pkg.add("RDatasets")
using RDatasets, DataFrames
datafr = dataset("datasets","anscombe")
#Replace each instance of 10(for e.g : (1,X1), (1,X2)) with NA
Edit 1 : Question for Julia similar to one here for R.