But the problem here is the lack of a conventional text object that supports multiple labels via text_key. All labels in Quantipy must provide multi-label support.
To that end we should implement a block- kwarg for defning multiple uses of the same method that are returned in a single group.
The following example shows the first of these we need to implement: block-logic.
The -logic part of the block- kwarg informs how the content of the items object should be interpreted. This allows the textual representation of each item to be given in place of where 'logic' would normally appear, so that 'top2': frange('9,10') is read as 'logic': frange('9,10') with the textual representation top2.
The unpainted version of the resulting dataframe will show an index with the values 'top2', 'mid3' and 'bot5'. When painted those representations will be translated by the given text_key as per any normal data value from a single or delimited set column.
The block- kwarg needs to itself be a dict with an items object to provide space for additional instructions, such as rules and additional custom properties.
Block nets are currently done like this:
But the problem here is the lack of a conventional text object that supports multiple labels via
text_key
. All labels in Quantipy must provide multi-label support.To that end we should implement a
block-
kwarg for defning multiple uses of the same method that are returned in a single group.The following example shows the first of these we need to implement:
block-logic
.The
-logic
part of theblock-
kwarg informs how the content of theitems
object should be interpreted. This allows the textual representation of each item to be given in place of where'logic'
would normally appear, so that'top2': frange('9,10')
is read as'logic': frange('9,10')
with the textual representationtop2
.The unpainted version of the resulting dataframe will show an index with the values
'top2'
,'mid3'
and'bot5'
. When painted those representations will be translated by the giventext_key
as per any normal data value from asingle
ordelimited set
column.The
block-
kwarg needs to itself be a dict with anitems
object to provide space for additional instructions, such asrules
and additional custom properties.