values

class IVector(data)

Bases: ABC

This class is a wrapper around pandas.Series.

It is intended to be used for all classes across the package that uses a Series as their internal data representation.

Parameters

data (Series) – series containing the data

Raises

KeyError – if some labels are duplicated

Attr data

internal representation of data

abstract copy()

Return a copy of the object

Return type

Self

property labels: List

Return the data labels.

property name: Any

Return the name of the data attribute.

sum()

Return the sum of the data.

Returns

Return type

float

Warning

it will raise a TypeError if data contains numeric and non-numeric values

Ranking

Type alias for all ranking objects.

series_equals(s1, s2)

Check if two series have the same values.

It will realign the indexes if they are ordered differently.

Parameters
  • s1 (Series) –

  • s2 (Series) –

Returns

Return type

bool