bands_rating_3
bands_rating_3(from_=None, to=None)Built-in decision-band presets.
Ready-made band specifications for annotate_bands():
bands_rating_3(): BAD / OK / GOOD over a 1-5 rating axis.bands_rating_5(): per-point labels (1 Very bad .. 5 Very good) over 1-5.bands_nps(): Detractor / Passive / Promoter over a 0-10 answer axis.bands_nps_score(): Needs work / Good / Great / Excellent over a -100..100 Net Promoter Score axis (the scale a headline NPS sits on, not the 0-10 answers it is computed from).
Pass from_ / to when the chart’s panel is narrower than the full scale: a band reaching past them is trimmed and a band entirely outside them is dropped. R names the first argument from, a Python keyword.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| from_ | float | Axis limits to clip the bands to. | None |
| to | float | Axis limits to clip the bands to. | None |
Returns
| Name | Type | Description |
|---|---|---|
| pandas.DataFrame | label, from, to and colour. |
See Also
annotate_bands, rescale_bands
Examples
>>> bands_rating_3()
>>> bands_rating_3(from_=2)
>>> bands_nps_score()