Yoav Kallus
Yoav Kallus
Possibly related to https://github.com/rtosholdings/riptable/issues/129 ``` import riptable as rt rt.__version__ ds = rt.Dataset({'a': rt.Cat([0, 1, 0, 1]), 'b': rt.Cat([1, 1, 0, 0]), 'x': rt.arange(4), 'y': rt.arange(4)**2+1}) print('wrong:') print(rt.Accum2(rt.Cat([ds['a'], ds['b']], sort_display=True),...
``` 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...
``` import riptable as rt rt.FA([0, 1]).isin({1: 0, 2: 0}.keys()) rt.FA([0, 1]).isin(list({1: 0, 2: 0}.keys())) ``` ``` FastArray([False, False]) FastArray([False, True]) ```
``` import riptable as rt import numpy as np n = 10_000 ds = rt.Dataset({ 'a': rt.Cat((rt.arange(n)%5==0).astype(np.int8)), 'b': rt.Cat(((rt.arange(n)//5)%5==0).astype(np.int8)), 'x': rt.arange(n)%3 }) print(rt.accum_cols(rt.Cat([ds['a'], ds['b']], sort_display=True), val_list=[ds['x']], func_list='nansum')) print(ds['x'][(ds['a'] == 1)&(ds['b']...
Loading a PDF image using the `loadImage()` method works in Safari on a Mac, but fails in Chrome. This is expected as Chrome does not support inline PDF images. However,...