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
Show AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame showsPrec :: Int -> AttributeOrderExpr -> ShowS # show :: AttributeOrderExpr -> String # showList :: [AttributeOrderExpr] -> ShowS # | |
Generic AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrderExpr :: Type -> Type # from :: AttributeOrderExpr -> Rep AttributeOrderExpr x # to :: Rep AttributeOrderExpr x -> AttributeOrderExpr # | |
Serialise AttributeOrderExpr Source # | |
type Rep AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrderExpr = D1 ('MetaData "AttributeOrderExpr" "ProjectM36.DataFrame" "project-m36-0.9.4-inplace" 'False) (C1 ('MetaCons "AttributeOrderExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Order))) |
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 :: Type -> Type # from :: AttributeOrder -> Rep AttributeOrder x # to :: Rep AttributeOrder x -> AttributeOrder # | |
Serialise AttributeOrder Source # | |
type Rep AttributeOrder Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrder = D1 ('MetaData "AttributeOrder" "ProjectM36.DataFrame" "project-m36-0.9.4-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 # | |
Serialise DataFrame Source # | |
type Rep DataFrame Source # | |
Defined in ProjectM36.DataFrame type Rep DataFrame = D1 ('MetaData "DataFrame" "ProjectM36.DataFrame" "project-m36-0.9.4-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 #
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 #