Skip to content

cell_key ​

python
cell_key(group_by: list[str] | None, values: Mapping[str, int | float]) -> TrajectoryKey

Build a normalised cell/grouping key from recorded values.

Parameters:

  • group_by (list[str] | None) – Fields to key by, in order; or None to key by every recorded value, sorted.
  • values (Mapping[str, int | float]) – The recorded values to project.

Returns:

  • TrajectoryKey – The normalised key.

Source