record.rs accepts `data` and this is passed to to_fit(). to_fit() accesses `data[0]` and that will lead to a panic if `data` has length == 0
record.rs accepts
dataand this is passed to to_fit(). to_fit() accessesdata[0]and that will lead to a panic ifdatahas length == 0