Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AttributeOrderExpr = AttributeOrderExpr AttributeName Order
- data AttributeOrder = AttributeOrder AttributeName Order
- data Order
- ascending :: Text
- descending :: Text
- arbitrary :: Text
- data DataFrame = DataFrame {
- orders :: [AttributeOrder]
- attributes :: Attributes
- tuples :: [DataFrameTuple]
- data DataFrameTuple = DataFrameTuple Attributes (Vector Atom)
- sortDataFrameBy :: [AttributeOrder] -> DataFrame -> Either RelationalError DataFrame
- sortTuplesBy :: (DataFrameTuple -> DataFrameTuple -> Ordering) -> [DataFrameTuple] -> [DataFrameTuple]
- compareTupleByAttributeOrders :: [AttributeOrder] -> DataFrameTuple -> DataFrameTuple -> Ordering
- compareTupleByOneAttributeName :: AttributeName -> DataFrameTuple -> DataFrameTuple -> Ordering
- atomForAttributeName :: AttributeName -> DataFrameTuple -> Either RelationalError Atom
- take' :: Integer -> DataFrame -> DataFrame
- drop' :: Integer -> DataFrame -> DataFrame
- toDataFrame :: Relation -> DataFrame
- fromDataFrame :: DataFrame -> Either RelationalError Relation
- showDataFrame :: DataFrame -> Text
- dataFrameAsTable :: DataFrame -> Table
- data DataFrameExpr = DataFrameExpr {}
- dataFrameAsHTML :: DataFrame -> Text
- tuplesAsHTML :: [DataFrameTuple] -> Text
- tupleAssocs :: DataFrameTuple -> [(AttributeName, Atom)]
- tupleAsHTML :: DataFrameTuple -> Text
- attributesAsHTML :: Attributes -> [AttributeOrder] -> Text
Documentation
data AttributeOrderExpr Source #
Instances
data AttributeOrder Source #
Instances
Show AttributeOrder Source # | |
Defined in ProjectM36.DataFrame showsPrec :: Int -> AttributeOrder -> ShowS # show :: AttributeOrder -> String # showList :: [AttributeOrder] -> ShowS # | |
Generic AttributeOrder Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrder :: * -> * # from :: AttributeOrder -> Rep AttributeOrder x # to :: Rep AttributeOrder x -> AttributeOrder # | |
Binary AttributeOrder Source # | |
Defined in ProjectM36.DataFrame | |
type Rep AttributeOrder Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrder = D1 (MetaData "AttributeOrder" "ProjectM36.DataFrame" "project-m36-0.7-inplace" False) (C1 (MetaCons "AttributeOrder" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AttributeName) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Order))) |
descending :: Text Source #
DataFrame | |
|
Instances
Show DataFrame Source # | |
Generic DataFrame Source # | |
Binary DataFrame Source # | |
type Rep DataFrame Source # | |
Defined in ProjectM36.DataFrame type Rep DataFrame = D1 (MetaData "DataFrame" "ProjectM36.DataFrame" "project-m36-0.7-inplace" False) (C1 (MetaCons "DataFrame" PrefixI True) (S1 (MetaSel (Just "orders") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [AttributeOrder]) :*: (S1 (MetaSel (Just "attributes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Attributes) :*: S1 (MetaSel (Just "tuples") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [DataFrameTuple])))) |
data DataFrameTuple Source #
DataFrameTuple Attributes (Vector Atom) |
Instances
sortTuplesBy :: (DataFrameTuple -> DataFrameTuple -> Ordering) -> [DataFrameTuple] -> [DataFrameTuple] Source #
compareTupleByAttributeOrders :: [AttributeOrder] -> DataFrameTuple -> DataFrameTuple -> Ordering Source #
compareTupleByOneAttributeName :: AttributeName -> DataFrameTuple -> DataFrameTuple -> Ordering Source #
toDataFrame :: Relation -> DataFrame Source #
showDataFrame :: DataFrame -> Text Source #
dataFrameAsTable :: DataFrame -> Table Source #
data DataFrameExpr Source #
A Relation can be converted to a DataFrame for sorting, limits, and offsets.
DataFrameExpr | |
|
Instances
dataFrameAsHTML :: DataFrame -> Text Source #
tuplesAsHTML :: [DataFrameTuple] -> Text Source #
tupleAssocs :: DataFrameTuple -> [(AttributeName, Atom)] Source #
tupleAsHTML :: DataFrameTuple -> Text Source #
attributesAsHTML :: Attributes -> [AttributeOrder] -> Text Source #