I'm trying to subset a DataFrame in Julia as follows:
df = DataFrame(a=[1,2,3], b=["x", "y", "z"])
df2 = df[df.a == 2, :]
I'd expect to get back just the second row, but instead I get an error:
ERROR: BoundsError: attempt to access "attempt to access a data frame with 3 rows at index false"
What does this error mean and how do I subset the DataFrame?