Safe Haskell | None |
---|---|
Language | Haskell2010 |
DataFrame.Internal.DataFrame
Synopsis
- data DataFrame = DataFrame {
- columns :: Vector Column
- columnIndices :: Map Text Int
- dataframeDimensions :: (Int, Int)
- data GroupedDataFrame = Grouped {
- fullDataframe :: DataFrame
- groupedColumns :: [Text]
- valueIndices :: Vector Int
- offsets :: Vector Int
- toMarkdownTable :: DataFrame -> Text
- asText :: DataFrame -> Bool -> Text
- empty :: DataFrame
- getColumn :: Text -> DataFrame -> Maybe Column
- unsafeGetColumn :: Text -> DataFrame -> Column
- null :: DataFrame -> Bool
- toMatrix :: DataFrame -> Either DataFrameException (Vector (Vector Float))
- columnAsVector :: Columnable a => Text -> DataFrame -> Vector a
Documentation
Constructors
DataFrame | |
Fields
|
data GroupedDataFrame Source #
A record that contains information about how and what
rows are grouped in the dataframe. This can only be used with
aggregate
.
Constructors
Grouped | |
Fields
|
Instances
Show GroupedDataFrame Source # | |
Defined in DataFrame.Internal.DataFrame Methods showsPrec :: Int -> GroupedDataFrame -> ShowS # show :: GroupedDataFrame -> String # showList :: [GroupedDataFrame] -> ShowS # | |
Eq GroupedDataFrame Source # | |
Defined in DataFrame.Internal.DataFrame Methods (==) :: GroupedDataFrame -> GroupedDataFrame -> Bool # (/=) :: GroupedDataFrame -> GroupedDataFrame -> Bool # |
toMarkdownTable :: DataFrame -> Text Source #
For showing the dataframe as markdown in notebooks.
toMatrix :: DataFrame -> Either DataFrameException (Vector (Vector Float)) Source #
Returns a dataframe as a two dimentions vector of floats.
All entries in the dataframe must be doubles. This is useful for handing data over into ML systems.
columnAsVector :: Columnable a => Text -> DataFrame -> Vector a Source #
Get a specific column as a vector.
You must specify the type via type applications.