tally.dataset.DataSet.band#

DataSet.band(**kwargs)#

Group numeric data with band definitions treated as group text labels.

Parameters
  • name (string) – The column variable name keyed in _meta[‘columns’] that will be banded into summarized categories.

  • bands (array) – The categorical bands to be used. Bands can be single numeric values or ranges.

  • new_name ((string, default None)) – The created variable will be named ‘<name>_banded’, unless a desired name is provided explicitly here.

  • label ((string, default None)) – The created variable’s text label will be identical to the originating one’s passed in name, unless a desired label is provided explicitly here.

  • text_key ((string, default None)) – Text key for text-based label information. Uses the DataSet.text_key information if not provided.