using `pinfo` feels wrong: I have that name associated with `plotinfo`. I also think that it makes sense to separate data and stat parameter (which should be attributed to `self`) here, so that the signature reads `_calculate(self, data)`.