DataFrame.Operations.Permutation
data SortOrder Source #
Sort order taken as a parameter by the sortBy function.
sortBy
Constructors
Defined in DataFrame.Operations.Permutation
Methods
(==) :: SortOrder -> SortOrder -> Bool #
(/=) :: SortOrder -> SortOrder -> Bool #
getSortColumnName :: SortOrder -> Text Source #
mustFlipCompare :: SortOrder -> Bool Source #
sortBy :: [SortOrder] -> DataFrame -> DataFrame Source #
O(k log n) Sorts the dataframe by a given row.
sortBy Ascending ["Age"] df
shuffle :: RandomGen g => g -> DataFrame -> DataFrame Source #
shuffledIndices :: RandomGen g => g -> Int -> Vector Int Source #