facet.data.partition.Partitioner#
- class facet.data.partition.Partitioner(max_partitions=None)[source]#
Abstract base class of all partitioners.
- Bases
FittableMixin
[ndarray
[Any
,dtype
[~T_Values]]]- Generic types
~T_Values(bound=
generic
)- Metaclasses
- Parameters
max_partitions (
Optional
[int
]) – the maximum number of partitions to generate; must be at least 2 (default: 20)
Method summary
Calculate the partitioning for the given observed values.
Attribute summary
DEFAULT_MAX_PARTITIONS
The count of values allocated to each partition.
True
if this is partitioner handles categorical values,False
otherwise.The maximum number of partitions to be generated by this partitioner.
The values representing the partitions.
Definitions
- abstract fit(values, **fit_params)[source]#
Calculate the partitioning for the given observed values.
- property frequencies_: numpy.ndarray[Any, numpy.dtype[numpy.int64]]#
The count of values allocated to each partition.
- abstract property is_categorical: bool#
True
if this is partitioner handles categorical values,False
otherwise.- Return type