While working with grouped data, I ran across what I believe is an issue. Grouped data doesn't appear to respect the option given to nils:
with_nil = DF.new(%{
id: [1,1,1,2,2,2,3,3,3],
data: [0.5, 1, nil, 0.7, 1, 0.9, 0.2, 0.2, 0.3]
})
DF.sort_by(with_nil, data, nils: :first) # works as you would expect
DF.group_by(with_nil, :id)
|> DF.sort_by(data, nils: :last) # nil value is still in the first position
Is this expected behavior, or something worth digging into further?
While working with grouped data, I ran across what I believe is an issue. Grouped data doesn't appear to respect the option given to
nils
:Is this expected behavior, or something worth digging into further?