Nicholas Smith

Results 88 comments of Nicholas Smith

If you're summing a bunch then doing the cartesian conversion once is more efficient anyway

Just to piggyback, I feel like `ak.pad` is a well-deserved function that could combine the arguments of `ak.pad_none` and `ak.fill_none`.

Isn't the fact that ```python In [9]: ak.fill_none(ak.pad_none(array.a, 2, clip=True), 0.) Out[9]: ``` casts the integers in `array.a` into floats a bug?

What is the interim recipe for such an operation, until the methods are aware of all awkward combinations?

@HDembinski was `energies.sum()` really too slow even in awkward0 that a numba function was necessary? I've never found it to be too bad. Also, regarding the pairs of tracks, was...

pandas has `isna`, `notna`, `isnull`, `notnull` and they all treat `float('nan')` and `None` the same. I suspect they also regret hijacking `float('nan')`.

I would fully support this. An example of a similar global function that applies to MaskedArrays is `pad()` which may help with implementation. I would suggest a signature like `isna(self,...

Probably `axis=0` should be the default to be consistent with pandas ExtensionArray interface, as used in awkward1.

Beware that `awkward.JaggedArray.fromiter` will be quite slow in awkward0. In general there is some sort of need for a "compactify" operation, which would compute all lazy take operations.

The non-ternary usage is equivalent to `nonzero`, e.g. `np.where(array