I am trying to split a list when there is an empty row. I have tried the following:
a = {{1, 1, 1}, {2, 2, 2}, {, ,}, {3, 3, 3}};
b = Split[a, # == Null]
but my result is:
{{{1, 1, 1}}, {{2, 2, 2}}, {{Null, Null, Null}}, {{3, 3, 3}}}
which is not correctly split.
I would like to have {1,..}
and {2,...}
gathered together:
{{{1, 1, 1}, {2, 2, 2}}, {{Null, Null, Null}}, {{3, 3, 3}}}
&
:b = Split[a, # == Null &]
$\endgroup$