geovizir.scales
#
Module Contents#
Functions#
|
Return a list of labels for a list of bins. |
|
Relabel a column with the bins of the column. |
- geovizir.scales.label_bins(bins: list[int, float]) list[str] [source]#
Return a list of labels for a list of bins.
For each element of the bins, an interval is created with the previous element. The first element is add as ‘< first_element’ and the last element as ‘> last_element’.
- Parameters:
bins (list[float, int]) – A list of bins to be labeled.
- Returns:
A list of labels.
- Return type:
list[str]
Examples
>>> bins([1,2,3])