Do Bool values separated by semi-colon and comma different from each other?

I have a matrix T0 (size: 1334269 x 35). It was created by this:
T0 = hcat(A, B, C, D, E, ...); # A, B, C, D, E, .. are all single-column data.

My goal is to only get the rows meeting these requirements:

Ind = map(A, B, C, D) do a, b, c, d
    (a > -20) && (b >= 15) && (c >= 500) && (d >= 500);

Ind (size: 1334269 x 1) is like this when printed out:
Bool[0; 0; 0; 0; 0; 0; ...]

Here is the script to only get the rows meeting the requirements:
T1 = T0[Ind, :];

Now I have a big problem. Why is my T1 a one-column data of weird values?
T1 size: 431903 x 1.

I did a test using some other data. It seems that normally a Bool[0, 0, 0, 0, 0, 0, ...] is separated by comma instead of semi-colon. Could this be the problem? What is the best fix?

Many thanks!

Since you want Ind to only select one dimension, it needs to be a one-dimensional array. Try T0[vec(Ind), :] instead.

1 Like

Thank you so much! It worked beautifully.

So the Ind I generated is not a one-dimensional array? I thought it is a column data, no? What is it then? How do I decide when to use vec?