dataframe-operations-2.4.0.0: Column operations, expression DSL, and statistics for the dataframe ecosystem.
Safe HaskellNone
LanguageHaskell2010

DataFrame.Operations.Permutation

Synopsis

Sorting

data SortOrder where Source #

Sort order taken as a parameter by the sortBy function.

Constructors

Asc :: forall a. (Columnable a, Ord a) => Expr a -> SortOrder 
Desc :: forall a. (Columnable a, Ord a) => Expr a -> SortOrder 

Instances

Instances details
Eq SortOrder Source # 
Instance details

Defined in DataFrame.Operations.Permutation

sortBy :: [SortOrder] -> DataFrame -> DataFrame Source #

O(k log n) Sorts the dataframe by a given row.

sortBy Ascending ["Age"] df

Shuffling