qis.ColVar

class qis.ColVar(name, short=None, short_n=None, value_type=ValueType.FLOAT, agg_func=None)[source]

Bases: NamedTuple

variable characteristic for columns variable for table

Parameters:
__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

to_format([digits_to_show, sharpe_digits, ...])

to_str([short, short_n])

Attributes

agg_func

Alias for field number 4

name

Alias for field number 0

short

Alias for field number 1

short_n

Alias for field number 2

value_type

Alias for field number 3

name: str

Alias for field number 0

short: str

Alias for field number 1

short_n: str

Alias for field number 2

value_type: ValueType

Alias for field number 3

agg_func: Callable | None

Alias for field number 4

to_str(short=False, short_n=False, **kwargs)[source]
Parameters:
Return type:

str

to_format(digits_to_show=2, sharpe_digits=2, price_format=None, **kwargs)[source]
Parameters:
  • digits_to_show (int)

  • sharpe_digits (int)

  • price_format (str | None)

Return type:

str