Parquet: writing data as row groups

My mistake, the above function works properly. Upon opening the resulting file, there are k groups

ds = Parquet2.Dataset("test.prq")
Parquet2.nrowgroups(ds)

and ds can be iterated over.