Top level functions#

register_accessors()

When called this function will register the "piso" ArrayAccessor on pandas.IntervalIndex and pandas.arrays.IntervalArray.

union(interval_array, *interval_arrays[, ...])

Performs a set union operation.

intersection(interval_array, *interval_arrays)

Performs a set intersection operation.

difference(interval_array, *interval_arrays)

Performs a set difference operation.

symmetric_difference(interval_array, ...[, ...])

Performs a set symmetric difference operation.

isdisjoint(interval_array, *interval_arrays)

Indicates whether one, or more, sets are disjoint or not.

issuperset(interval_array, *interval_arrays)

Indicates whether a set is a superset of one, or more, other sets.

issubset(interval_array, *interval_arrays[, ...])

Indicates whether a set is a subset of one, or more, other sets.

coverage(interval_array[, domain, bins, how])

Calculates the fraction of a domain (or possibly multiple domains) covered by a collection of intervals.

complement(interval_array[, domain])

Calculates the complement of a collection of intervals (in an array) over some domain.

contains(interval_array, x[, include_index, ...])

Evaluates the intersection of a set of intervals with a set of points.

split(interval_array, x)

Given a set of intervals, and break points, splits the intervals into pieces wherever the overlap a break point.

bridge(interval_array, threshold)

Given a set of intervals, and a threshold, merges intervals which are separated by a gap less than or equal to the threshold.

lookup(frame_or_series, x)

Given a pandas.DataFrame, or pandas.Series, indexed by a pandas.IntervalIndex, finds the intervals which contain each point in an array and returns the associated rows/elements.

join(*frames_or_series[, how, suffixes, sort])

Joins multiple dataframes or series by their pandas.IntervalIndex.

adjacency_matrix(interval_array, ...[, ...])

Returns a 2D array (or dataframe) of boolean values indicating edges between nodes in a graph.