The statistics operator is called as any other operator from python. The same for the index operators.
On the command line you can typegpt -h
to get a list of all available operators.
You can find examples in the following threads:
snappy-where-to-start?
Example script for multiple operations?
If you invoke the statistics operator only with one product it should work as you expect it.
regards
Marco