Python binding to rust zw-fast-quantile
APACHE-2.0 License
zw-fast-quantile python binding
pip install zw_fast_quantile_py
import zw_fast_quantile_py
summary = zw_fast_quantile_py.IntQuantileSummary(0.01)
summary.update(1,2,3,4,5,6,7,8,9,10)
summary.query(0.0)
We calculate the median of [1, 1000]
, the zw_fast_quantile_py
is slightly slower than statistics.quantiles
due to the serilization cost between python and extension.
502
4.4792000000000096e-05
499.5
3.883300000000027e-05