magpie.helper

Undocumented in source.

Members

Aliases

toArr
alias toArr(T) = T[]

Template to get array from type

Functions

dropper
T[] dropper(int[] pos, T[] values)

drops values at a set of position from given array

ensureUnique
Index ensureUnique(Index i1, Index i2, string lsuffix, string rsuffix)

Get unique indexes for merge

indexIntersection
Index indexIntersection(Index i1, Index i2)

find set of indexes that occur in both structures

indexUnion
Index indexUnion(Index i1, Index i2)

Returns the union of indexes in the order they appear

sortIndex
void sortIndex(string[] index, int[] codes)

Function to sort indexes in ascending order and switch the code to keep the effective positions same

transposed
T[][] transposed(T[][] data)

Transposes an array of integer

vectorize
int[] vectorize(T[] values)

Does exactly what generateCode does in Index but for any general ndarray

Mixin templates

auxDispatch
mixintemplate auxDispatch(alias F, bool isHomogeneousType, RowType...)
Undocumented in source.

Templates

dropper
template dropper(int[] pos, Types...)

Template to evaluate RowType - removes elements in Types according to the positions in pos. pos must be ascending

getArgsList
template getArgsList(args...)

Build DataFrame argument list

isDataFrame
template isDataFrame(T)

Template to check if the input is a DataFrame or not

isGroup
template isGroup(T)

Template to check if the input is a Group or not

isHomogeneous
template isHomogeneous(Args...)

Check if given DataFrame is Homogeneous

suitableType
template suitableType(Types...)

Finding suitable type for aggregate

Meta