Liking cljdoc? Tell your friends :D

tech.ml.protocols.dataset


->flyweightclj

(->flyweight dataset
             &
             {:keys [column-name-seq error-on-missing-values?]
              :or {column-name-seq :all error-on-missing-values? true}})

Convert dataset to flyweight dataset. Flag indicates

Convert dataset to flyweight dataset.
Flag indicates 
sourceraw docstring

columnclj

(column dataset column-name)

Return the column or throw if it doesn't exist.

Return the column or throw if it doesn't exist.
sourceraw docstring

ds-filterclj

(ds-filter dataset predicate & [column-name-seq])
source

ds-group-byclj

(ds-group-by dataset key-fn & [column-name-seq])
source

ds-mapclj

(ds-map dataset map-fn & [column-name-seq])
source

PColumnarDatasetcljprotocol

remove-columnclj

(remove-column dataset col-name)

Failes quietly

Failes quietly

selectclj

(select dataset colname-seq index-seq)

Reorder/trim dataset according to this sequence of indexes. Returns a new dataset. colname-seq - either keyword :all or list of column names with no duplicates. index-seq - either keyword :all or list of indexes. May contain duplicates.

Reorder/trim dataset according to this sequence of indexes.  Returns a new dataset.
colname-seq - either keyword :all or list of column names with no duplicates.
index-seq - either keyword :all or list of indexes.  May contain duplicates.

add-columnclj

(add-column dataset column)

Error if columns exists

Error if columns exists

update-columnclj

(update-column dataset col-name update-fn)

Update a column returning a new dataset. update-fn is a column->column transformation. Error if column does not exist.

Update a column returning a new dataset.  update-fn is a column->column transformation.
Error if column does not exist.

add-or-update-columnclj

(add-or-update-column dataset column)

If column exists, replace. Else append new column.

If column exists, replace.  Else append new column.

maybe-columnclj

(maybe-column dataset column-name)

Return either column if exists or nil.

Return either column if exists or nil.

columnsclj

(columns dataset)

dataset-nameclj

(dataset-name dataset)

index-value-seqclj

(index-value-seq dataset)

Get a sequence of tuples: [idx col-value-vec]

Values are in order of column-name-seq. Duplicate names are allowed and result in duplicate values.

Get a sequence of tuples:
[idx col-value-vec]

Values are in order of column-name-seq.  Duplicate names are allowed and result in
duplicate values.

supported-statsclj

(supported-stats dataset)

Return the set of natively supported stats for the dataset. This must be at least #{:mean :variance :median :skew}.

Return the set of natively supported stats for the dataset.  This must be at least
#{:mean :variance :median :skew}.

from-prototypeclj

(from-prototype dataset table-name column-seq)

Create a new dataset that is the same type as this one but with a potentially different table name and column sequence. Take care that the columns are all of the correct type.

Create a new dataset that is the same type as this one but with a potentially
different table name and column sequence.  Take care that the columns are all of
the correct type.
source

select-columnsclj

(select-columns dataset col-name-seq)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close