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
which might not properly align; a much safer option would be a left join.
The implementation in #2176 selects a single row or slice; and since within datatable i is executed before j, the results wont come out right. Also, at the moment, sequences are not accepted within the i; it would be nice to be able to select lists with the nth function
The text was updated successfully, but these errors were encountered:
An
nth
function, similar to pandas groupby nth, where the selected row/rows stay as part of the new aggregations in the presence ofby
:The
nth
function/method should return the row or rows along with other aggregations:One way to currently implement this would be to do a
cbind
:dt.cbind(DT[:, {"sum": f.y.sum()}, "x"], DT[1, 'n', by('x', add_columns=False)], force=True)
which might not properly align; a much safer option would be a left join.
The implementation in #2176 selects a single row or slice; and since within datatable
i
is executed beforej
, the results wont come out right. Also, at the moment, sequences are not accepted within thei
; it would be nice to be able to select lists with thenth
functionThe text was updated successfully, but these errors were encountered: