kappa_sdk.DataEnumeration#

class kappa_sdk.DataEnumeration(vectors, last_points)[source]#

Result produced by the DataEnumerator.

Inherited from the list, it allows iterating over a list of DataEnumeratorPoint, and also contains the last common date of data enumeration inputs.

Note

Should not be instantiated directly.

Attributes

DataEnumeration.last_common_date

Returns the last common date of the enumerated inputs.

DataEnumeration.last_points

Returns the last points of the enumerated inputs.

DataEnumeration.vectors

class: 'Vector'

Methods

DataEnumeration.append(object, /)

Append object to the end of the list.

DataEnumeration.clear()

Remove all items from list.

DataEnumeration.copy()

Return a shallow copy of the list.

DataEnumeration.count(value, /)

Return number of occurrences of value.

DataEnumeration.extend(iterable, /)

Extend list by appending elements from the iterable.

DataEnumeration.index(value[, start, stop])

Return first index of value.

DataEnumeration.insert(index, object, /)

Insert object before index.

DataEnumeration.pop([index])

Remove and return item at index (default last).

DataEnumeration.remove(value, /)

Remove first occurrence of value.

DataEnumeration.reverse()

Reverse IN PLACE.

DataEnumeration.sort(*[, key, reverse])

Sort the list in ascending order and return None.

Parameters:
  • vectors (List[Vector])

  • last_points (List[DataPoint])