You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if I do op.sum(colName) and all the values of colName are null within a group, the aggregated value for that group is 0.0. IMO it would be more sensible to return null in this case.
Example:
dt = aq.from([{ foo: 1, bar: 1 }, { foo: 1, bar: 3 }, { foo: 2, bar: null }])
dt.groupby('foo').derive({bar: op.sum('bar')})
The text was updated successfully, but these errors were encountered:
Thanks @peterewills. I've updated sum to match the behavior of the other non-count aggregate functions. Each returns undefined when invoked over empty or null-only data. Fix will be released shortly in v1.2.3.
@jheer thanks so much! We're starting to use arquero in our Observable notebooks here at Stitch Fix, and are really appreciating the work you've put into it.
Right now, if I do
op.sum(colName)
and all the values ofcolName
arenull
within a group, the aggregated value for that group is0.0
. IMO it would be more sensible to returnnull
in this case.Example:
The text was updated successfully, but these errors were encountered: