Liking cljdoc? Tell your friends :D

tech.ml.protocols.column


PColumncljprotocol

missingclj

(missing col)

Indexes of missing values

Indexes of missing values

get-column-valueclj

(get-column-value col idx)

Get a value fro mthe column. Error on missing values.

Get a value fro mthe column.  Error on missing values.

math-contextclj

(math-context col)

column-nameclj

(column-name col)

metadataclj

(metadata col)

Return the metadata map for this column. Metadata must contain :name :type :size. Categorical columns must have :categorical? true and the inference target should have :target? true.

Return the metadata map for this column.
    Metadata must contain :name :type :size.  Categorical
columns must have :categorical? true and the inference target
should have :target? true.

statsclj

(stats col stats-set)

Return a map of stats. Stats set is a set of the desired stats in keyword form. Guaranteed support across implementations for :mean :variance :median :skew. Implementations should check their metadata before doing calculations.

Return a map of stats.  Stats set is a set of the desired stats in keyword
form.  Guaranteed support across implementations for :mean :variance :median :skew.
Implementations should check their metadata before doing calculations.

set-nameclj

(set-name col name)

Return a new column.

Return a new column.

column-valuesclj

(column-values col)

Return a 'thing convertible to a sequence' of values for this column. May be a java array or something else. Likely to error on missing.

Return a 'thing convertible to a sequence' of values for this column.
May be a java array or something else.  Likely to error on missing.

selectclj

(select col idx-seq)

Return a new column with the subset of indexes

Return a new column with the subset of indexes

set-valuesclj

(set-values col idx-val-seq)

Set values in the column returning a new column with same name and datatype. Values which cannot be simply coerced to the datatype are an error.

Set values in the column returning a new column with same name and datatype.  Values
which cannot be simply coerced to the datatype are an error.

uniqueclj

(unique col)

Set of all unique values

Set of all unique values

new-columnclj

(new-column col datatype elem-count-or-values column-name)

Return a new column of this supertype with these values

Return a new column of this supertype with these values

set-metadataclj

(set-metadata col data-map)

Set the metadata on the column returning a new column.

Set the metadata on the column returning a new column.

empty-columnclj

(empty-column col datatype elem-count column-name)

Return a new column of this supertype where all values are missing.

Return a new column of this supertype where all values are missing.

is-missing?clj

(is-missing? col idx)

Return true if this index is missing.

Return true if this index is missing.

supported-statsclj

(supported-stats col)

List of available stats for the column

List of available stats for the column
source

PColumnMathContextcljprotocol

binary-opclj

(binary-op ctx op-env op-args op-scalar-fn op-kwd)

unary-opclj

(unary-op ctx op-env op-arg op-kwd)
source

PIsColumncljprotocol

is-column?clj

(is-column? item)
source

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

× close