NodeStateIntervals
#
Bases: object
__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).
get(node, default=None)
#
items()
#
max()
#
Calculate the maximum interval in milliseconds for each node.
Returns:
| Type | Description |
|---|---|
NodeStateOptionI64
|
A NodeState with the computed 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 |
|---|---|
NodeStateOptionF64
|
A NodeState with the computed 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 |
|---|---|
NodeStateOptionI64
|
A NodeState with the computed 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 |
|---|---|
NodeStateOptionI64
|
A NodeState with the computed 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 |