operations

A Daf query can use operations to process the data: EltwiseOperation that preserve the shape of the data, and ReductionOperation that reduce a matrix to a vector, or a vector to a scalar. See the Julia documentation for details.

class dafpy.operations. QueryOperation ( jl_obj ) [source]

Base class for all query operations. See the Julia documentation for details.

Query operations can be chained into a QuerySequence using the | operator in Python (instead of the |> operator in Julia).

class dafpy.operations. QuerySequence ( jl_obj ) [source]

A sequence of QueryOperation . See the Julia documentation for details.

Query operations can be chained into a QuerySequence using the | operator in Python (instead of the |> operator in Julia).

class dafpy.operations. EltwiseOperation ( jl_obj ) [source]

Base class for all element-wise operations. See the Julia documentation for details.

class dafpy.operations. ReductionOperation ( jl_obj ) [source]

Abstract type for all reduction operations. See the Julia documentation for details.

class dafpy.operations. Abs ( * , type : Type | None = None ) [source]

Element-wise operation that converts every element to its absolute value. See the Julia documentation for details.

class dafpy.operations. Clamp ( * , min : float = -inf , max : float = inf ) [source]

Element-wise operation that converts every element to a value inside a range. See the Julia documentation for details.

class dafpy.operations. Convert ( * , type : Type ) [source]

Element-wise operation that converts every element to a given data type. See the Julia documentation for details.

class dafpy.operations. Fraction ( * , type : Type | None = None ) [source]

Element-wise operation that converts every element to its fraction out of the total. See the Julia documentation for details.

class dafpy.operations. Log ( * , type : Type | None = None , base : float = 2.718281828459045 , eps : float = 0 ) [source]

Element-wise operation that converts every element to its logarithm. See the Julia documentation for details.

class dafpy.operations. Max [source]

Reduction operation that returns the maximal element. See the Julia documentation for details.

class dafpy.operations. Median [source]

Reduction operation that returns the median value. See the Julia documentation for details.

class dafpy.operations. Mean [source]

Reduction operation that returns the mean value. See the Julia documentation for details.

class dafpy.operations. Min [source]

Reduction operation that returns the minimal element. See the Julia documentation for details.

class dafpy.operations. Quantile ( * , type : Type | None = None , p : float ) [source]

Reduction operation that returns the quantile value, that is, a value such that a certain fraction of the values is lower. See the Julia documentation for details.

class dafpy.operations. Round ( * , type : Type | None = None ) [source]

Element-wise operation that converts every element to the nearest integer value. See the Julia documentation for details.

class dafpy.operations. Significant ( * , high : float , low : float | None = None ) [source]

Element-wise operation that zeros all “insignificant” values. See the Julia documentation for details.

class dafpy.operations. Std [source]

Reduction operation that returns the standard deviation of the values. See the Julia documentation for details.

class dafpy.operations. StdN [source]

Reduction operation that returns the standard deviation of the values, normalized (divided) by the mean of the values. See the Julia documentation for details.

class dafpy.operations. Sum ( * , type : Type | None = None ) [source]

Reduction operation that sums elements. See the Julia documentation for details.

class dafpy.operations. Var [source]

Reduction operation that returns the variance of the values. See the Julia documentation for details.

class dafpy.operations. VarN [source]

Reduction operation that returns the variance of the values, normalized (divided) by the mean of the values. See the Julia documentation for details.