Hello, I got a slight variation of this problem. Instead of testing arrays, I would like to select the rows of a dataframe whose column X corresponds to the all the elements of an array. In other words:
if I have an array x=["a", "b", "c"]
and a dataframe df with unique(df[:X]) = "a", "c", "d", "g"
, can I make a selection? df[df[:X] .== x, :]
, df[df[:X] .∈ x, :]
and df[occursin.(x, df.X), :]
did not work…