Data.span

Data.span(column=None, bounds=None)

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

Parameters:

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.