Unexpected output th.stats.std #140
Labels
area-stats
Issues and PRs related to Thicket's stats subpackage
priority-normal
Normal priority issues and PRs
type-bug
Identifies bugs in issues and identifies bug fixes in PRs
There is an issue with the th.stats.std function where single profiled thicket results in Nan's value due to pandas use of sample standard deviation instead of population standard deviation.
A way to get around this issue is to use
lambda x: np.std(x)
in the aggregate function of th.stats.std.i.e
df = thicket.dataframe[columns].reset_index().groupby("node").agg(lambda x: np.std(x))
The text was updated successfully, but these errors were encountered: