I have a dataset that uses ".." instead of NaN and I am currently trying to convert those strings into NaN. I have tried the following:
for i in 1:length(final_df[:,1])
for j in 1:length(final_df[1,:])
if final_df[i,j] == ".."
final_df[i,j] = NaN
end
end
end
However I keep getting the following error: MethodError: Cannot 'convert' an object of type Float64 to an object of type String.
Here is a portion of the dataset for reference.
Any help is appreciated, thanks!