IntervalsView
#
Bases: object
A lazy view over node values
__eq__(value)
#
Return self==value.
__ge__(value)
#
Return self>=value.
__getitem__(key)
#
Return self[key].
__gt__(value)
#
Return self>value.
__iter__()
#
Implement iter(self).
__le__(value)
#
Return self<=value.
__len__()
#
Return len(self).
__lt__(value)
#
Return self<value.
__ne__(value)
#
Return self!=value.
__repr__()
#
Return repr(self).
arrow_compute()
#
Compute all values and return the result as a OutputTypedNodeState
Returns:
| Type | Description |
|---|---|
NodeStateIntervals
|
the computed |
collect()
#
compute()
#
Compute all values and return the result as a node view
Returns:
| Type | Description |
|---|---|
NodeStateIntervals
|
the computed |
get(node, default=None)
#
items()
#
max()
#
Calculate the maximum interval in milliseconds for each node.
Returns:
| Type | Description |
|---|---|
IntervalsIntegerView
|
A lazy view over the maximum interval between consecutive timestamps for each node. The maximum is None if there is fewer than 1 interval. |
mean()
#
Calculate the mean interval in milliseconds for each node.
Returns:
| Type | Description |
|---|---|
IntervalsFloatView
|
A lazy view over the mean interval between consecutive timestamps for each node. The mean is None if there is fewer than 1 interval. |
median()
#
Calculate the median interval in milliseconds for each node.
Returns:
| Type | Description |
|---|---|
IntervalsIntegerView
|
A lazy view over the median interval between consecutive timestamps for each node. The median is None if there is fewer than 1 interval. |
min()
#
Calculate the minimum interval in milliseconds for each node.
Returns:
| Type | Description |
|---|---|
IntervalsIntegerView
|
A lazy view over the minimum interval between consecutive timestamps for each node. The minimum is None if there is fewer than 1 interval. |
sorted_by_id()
#
to_df()
#
Convert results to pandas DataFrame
The DataFrame has two columns, "node" with the node ids and "value" with the corresponding values.
Returns:
| Type | Description |
|---|---|
DataFrame
|
the pandas DataFrame |