Data.span

Data.span(column: str | int | Pattern | Sequence[int | str | Pattern] | None = None, bounds: Callable | None = None) Tuple[float, float]

Return a tuple of the maximum and minimum values within the given column and bounds.

Parameters:
  • datafile (Data) – If not being used as a bound menthod, specifies the instance of Data to work with.

  • column (index) – Column to look for the maximum in

Keyword Arguments:

bounds (callable) – col_a callable function that takes col_a single argument list of numbers representing one row, and returns True for all rows to search in.

Returns:

(float,float) – col_a tuple of (min value, max value)

Note

This works by calling into Data.max() and Data.min().

If column is not defined (or is None) the DataFile.setas column assignments are used.