I’m having trouble with the code to fill a dataframe with some strings
say the strings are defined as
data = ["a\tb","c\td","e\tf"]
a dataframe is preallocated as
df = DataFrame([String, String],[:X,:Y],3)
I’m trying to fill the dataframe like this, but it doesn’t seem to be working. Is there something basic I’m doing wrong?
df = split.(data, "\t")
I’ve also tried this, but this doesn’t work either.
for i in 1:length(data)
df[i,:] = split(data[i], "\t")
end
I don’t find any examples in the documentation that covers this use case.