Safe Haskell | None |
---|---|
Language | Haskell2010 |
ProjectM36.DataFrame
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 #
Constructors
AttributeOrderExpr AttributeName Order |
Instances
Show AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame Methods showsPrec :: Int -> AttributeOrderExpr -> ShowS # show :: AttributeOrderExpr -> String # showList :: [AttributeOrderExpr] -> ShowS # | |
Generic AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame Associated Types type Rep AttributeOrderExpr :: Type -> Type # Methods 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 #
Constructors
AttributeOrder AttributeName Order |
Instances
Show AttributeOrder Source # | |
Defined in ProjectM36.DataFrame Methods showsPrec :: Int -> AttributeOrder -> ShowS # show :: AttributeOrder -> String # showList :: [AttributeOrder] -> ShowS # | |
Generic AttributeOrder Source # | |
Defined in ProjectM36.DataFrame Associated Types type Rep AttributeOrder :: Type -> Type # Methods from :: AttributeOrder -> Rep AttributeOrder x # to :: Rep AttributeOrder x -> AttributeOrder # | |
Serialise AttributeOrder Source # | |
Defined in ProjectM36.Serialise.DataFrame | |
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))) |
Constructors
AscendingOrder | |
DescendingOrder |
descending :: Text Source #
Constructors
DataFrame | |
Fields
|
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 #
Constructors
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.
Constructors
DataFrameExpr | |
Fields
|
Instances
dataFrameAsHTML :: DataFrame -> Text Source #
tuplesAsHTML :: [DataFrameTuple] -> Text Source #
tupleAssocs :: DataFrameTuple -> [(AttributeName, Atom)] Source #
tupleAsHTML :: DataFrameTuple -> Text Source #
attributesAsHTML :: Attributes -> [AttributeOrder] -> Text Source #