There is no natural way to access a stat's name from an IDStat object.
For example, for the object
H.nodes.degree
# --> NodeStat("degree")
the only way I found to retrieve the stat name "degree" is by doing H.nodes.degree.aspandas()._name.
Something like H.nodes.degree.name() would be more natural.
(Corollary question: is it possible right now to compute a stat by using it's name as a string? Like H.nodes.stat("degree"). We cannot, right?)
There is no natural way to access a stat's name from an IDStat object.
For example, for the object
the only way I found to retrieve the stat name "degree" is by doing
H.nodes.degree.aspandas()._name
. Something likeH.nodes.degree.name()
would be more natural.(Corollary question: is it possible right now to compute a stat by using it's name as a string? Like
H.nodes.stat("degree")
. We cannot, right?)