riptable icon indicating copy to clipboard operation
riptable copied to clipboard

Categorical.first should throw exception on length match

Open ykallus opened this issue 4 years ago • 1 comments

import riptable as rt
ds1 = rt.Dataset({'a': rt.arange(1, 4)})
print(ds1.cat(rt.arange(10000)//4000).first(ds1['a']))
*key_0                 a
------   ---------------
     0                 1
     1   140380335215024
     2   140379305999776

compare to behavior with mean instead of first

ykallus avatar Mar 26 '21 15:03 ykallus

related to https://github.com/rtosholdings/riptable/issues/124?

ykallus avatar Mar 26 '21 15:03 ykallus