| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.Operations.Permutation
Synopsis
- data SortOrder where
- Asc :: forall a. Columnable a => Expr a -> SortOrder
- Desc :: forall a. Columnable a => Expr a -> SortOrder
- getSortColumnName :: SortOrder -> Text
- mustFlipCompare :: SortOrder -> Bool
- sortBy :: [SortOrder] -> DataFrame -> DataFrame
- shuffle :: RandomGen g => g -> DataFrame -> DataFrame
- shuffledIndices :: (HasCallStack, RandomGen g) => g -> Int -> Vector Int
Documentation
Sort order taken as a parameter by the sortBy function.
Constructors
| Asc :: forall a. Columnable a => Expr a -> SortOrder | |
| Desc :: forall a. Columnable a => Expr a -> SortOrder |
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
shuffledIndices :: (HasCallStack, RandomGen g) => g -> Int -> Vector Int Source #