IIndexBuilder
Namespace: Deedle.Indices
A builder represents various ways of constructing index, either from keys or from
other indices. The operations that build a new index from an existing index also
build VectorConstruction
which specifies how to transform vectors aligned with the
previous index to match the new index. The methods generally take VectorConstruction
as an input, apply necessary transformations to it and return a new VectorConstruction
.
Example
For example, given index
, we can say:
1: 2: 3: 4: 5: 6: |
|
Instance members
Instance member | Description | ||
x.Aggregate(...)
Signature: (index:IIndex<'K> * aggregation:Aggregation<'K> * source:VectorConstruction * selector:(DataSegmentKind * SeriesConstruction<'K> -> 'TNewKey * OptionalValue<'R>)) -> IIndex<'TNewKey> * IVector<'R>
Modifiers: abstract Type parameters: 'K, 'TNewKey, 'R |
Aggregate an ordered index into floating windows or chunks. Parameters
|
||
x.AsyncMaterialize(arg1)
Signature: SeriesConstruction<'K> -> AsyncSeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Given an index and vector construction, return a new index asynchronously
to allow composing evaluation of lazy series. The command to be applied to
vectors can be applied asynchronously using |
||
x.Create(arg1, arg2)
Signature: (ReadOnlyCollection<'K> * Option<bool>) -> IIndex<'K>
Modifiers: abstract Type parameters: 'K |
Create a new index using the specified keys. This overload takes data as ReadOnlyCollection and so it is more efficient if the caller already has the keys in an allocated collection. Optionally, the caller can specify if the index keys are ordered or not. When the value is not set, the construction should check and infer this from the data. |
||
x.Create(arg1, arg2)
Signature: (seq<'K> * Option<bool>) -> IIndex<'K>
Modifiers: abstract Type parameters: 'K |
Create a new index using the specified keys. Optionally, the caller can specify if the index keys are ordered or not. When the value is not set, the construction should check and infer this from the data. |
||
x.DropItem(arg1, arg2)
Signature: (SeriesConstruction<'K> * 'K) -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Drop an item associated with the specified key from the index. |
||
x.GetAddressRange(arg1, arg2)
Signature: (SeriesConstruction<'K> * RangeRestriction<Address>) -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Create a new index that represents sub-range of an existing index. The range is specified as a pair of addresses, which means that it can be used by operations such as "series.Take(5)" (which do not rely on keys) |
||
x.GetRange(arg1, arg2)
Signature: (SeriesConstruction<'K> * (('K * BoundaryBehavior) option * ('K * BoundaryBehavior) option)) -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Create a new index that represents sub-range of an existing index. The range is specified
as a pair of options (when |
||
x.GroupBy(index, keySelector, arg3)
Signature: (index:IIndex<'K> * keySelector:('K -> OptionalValue<'TNewKey>) * VectorConstruction) -> ReadOnlyCollection<'TNewKey * SeriesConstruction<'K>>
Modifiers: abstract Type parameters: 'K, 'TNewKey |
Group a (possibly unordered) index according to a provided sequence of labels. The operation results in a sequence of unique labels along with corresponding series construction objects which can be applied to arbitrary vectors/columns. |
||
x.Intersect(arg1, arg2)
Signature: (SeriesConstruction<'K> * SeriesConstruction<'K>) -> IIndex<'K> * VectorConstruction * VectorConstruction
Modifiers: abstract Type parameters: 'K |
Creates an interesection of two indices and builds corresponding vector transformations for both vectors that match the left and the right index. |
||
x.LookupLevel(arg1, arg2)
Signature: (SeriesConstruction<'K> * ICustomLookup<'K>) -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Get items associated with the specified key from the index. This method takes
|
||
x.Merge(arg1, arg2, arg3)
Signature: (SeriesConstruction<'K> list * VectorListTransform * bool) -> IIndex<'K> * VectorConstruction
Modifiers: abstract Type parameters: 'K |
Append two indices and builds corresponding vector transformations
for both vectors that match the left and the right index. If the indices
are ordered, the ordering should be preserved (the keys should be aligned).
The specified |
||
x.OrderIndex(arg1)
Signature: SeriesConstruction<'K> -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Order (possibly unordered) index and return transformation that reorders vector |
||
x.Project(arg1)
Signature: IIndex<'K> -> IIndex<'K>
Modifiers: abstract Type parameters: 'K |
When we perform some projection on the vector ( |
||
x.Recreate(arg1)
Signature: IIndex<'K> -> IIndex<'K>
Modifiers: abstract Type parameters: 'K |
When we create a new vector ( |
||
x.Reindex(arg1, arg2, arg3, arg4, arg5)
Signature: (IIndex<'K> * IIndex<'K> * Lookup * VectorConstruction * (Address -> bool)) -> VectorConstruction
Modifiers: abstract Type parameters: 'K |
Given an old index and a new index, build a vector transformation that reorders
elements from a vector associated with the old index so that they match the new
index. When finding element location in the new index, the provided The proivded |
||
x.Resample(...)
Signature: (IIndexBuilder * IIndex<'K> * seq<'K> * Direction * source:VectorConstruction * selector:('K * SeriesConstruction<'K> -> 'TNewKey * OptionalValue<'R>)) -> IIndex<'TNewKey> * IVector<'R>
Modifiers: abstract Type parameters: 'K, 'TNewKey, 'R |
Aggregate data into non-overlapping chunks by aligning them to the
specified keys. The second parameter specifies the direction. If it is
|
||
x.Search(arg1, arg2, arg3)
Signature: (SeriesConstruction<'K> * IVector<'V> * 'V) -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K, 'V |
Get a series construction that restricts the range of the input to only locations where the specified vector contains the specified value. (used to filter frame rows according to a column value) |
||
x.Shift(arg1, arg2)
Signature: (SeriesConstruction<'K> * int) -> SeriesConstruction<'K>
Modifiers: abstract Type parameters: 'K |
Shift the values in the series by a specified offset, in a specified direction. The resulting series should be shorter by abs(offset); key for which there is no value should be dropped. For example:
|
||
x.Union(arg1, arg2)
Signature: (SeriesConstruction<'K> * SeriesConstruction<'K>) -> IIndex<'K> * VectorConstruction * VectorConstruction
Modifiers: abstract Type parameters: 'K |
Creates a union of two indices and builds corresponding vector transformations for both vectors that match the left and the right index. |
||
x.WithIndex(arg1, arg2, arg3)
Signature: (IIndex<'K> * IVector<'TNewKey> * VectorConstruction) -> SeriesConstruction<'TNewKey>
Modifiers: abstract Type parameters: 'K, 'TNewKey |
Create a new index by picking a new key value for each key in the original index (used e.g. when we have a frame and want to use specified column as a new index). |