Maybe use [Monary](https://bitbucket.org/djcbeach/monary/wiki/Home) driver to read data from MongoDB and compute aggregations using numpy.
Maybe use Monary driver to read data from MongoDB and compute aggregations using numpy.