Hi,
I have some JSON of the form
j = JSON.parse("""[{"A":"one", "B":2},{"A":"three","B":4}]""")
I have made a DataTable by
dt = DataTable(DataFrame(j))
Next I would like to bind a Selector control to a column. I can get a column but it is of type DataTable{Vector{String}} but the control needs type Vector{String}; it needs Vector{Any} and String will work. However, I cannot get the column as Vector{String} out of the DataTable.
For example, with
selector_col = dt[!,"A"]
selector_col is of type DataTable{Vector{String}} and I can’t extract type Vector{String}.
Vector{String}(dt[!,"A"])
gives an error
MethodError(Vector{String}, (DataTable{Vector{String}}([ ... the column list I want ... ], ...]
Which I think means there is no cast defined from DataTable{Vector{String}} to Vector{String}.
How is this done or am I going about it the wrong way?
Thanks