I have a DataFrame
using DataFrames
using DataFramesMeta
using Chain
df = DataFrame(a=1:3,b=4:6)
that I want to sort descending by column :a
. Doing it ascending is intuitive...
@chain df begin
@orderby(:a)
end
How can I do this?
Looking for different solutions here, but specifically for a solution that can be used in @chain
s.
So, if you have a numeric column, you can simply negate it...
But this logic doesn't work for
Date
s for example.