henne90gen/elm-pandas-visualization/2.0.0

NOTE: the latest version is 7.0.2

DataFrame

Elm representation of a pandas DataFrame.

type alias DataFrame a =
{ schema : Maybe Schema
, data : List a
}

The DataFrame type containing the schema of the data and the data itself

create : List a -> DataFrame a

Creates a DataFrame from the supplied data

dataFrameDecoder : Decoder a -> Decoder (DataFrame a)

Decodes a JSON serialized DataFrame

Helper Methods

map : (a -> b) -> DataFrame a -> DataFrame b

Maps a function over each row of a DataFrame

filter : (a -> Bool) -> DataFrame a -> DataFrame a

Filter rows by the specified filter function

length : DataFrame a -> Int

Gives back the number of rows in the DataFrame

Default paddings

paddingX : Float

Default horizontal padding

paddingY : Float

Default vertical padding