Skip to main content

Weighted quantiles, including weighted median, based on numpy

Project description

[![Build Status](]( [![DOI](]( [![Pypi](](

Weighted quantiles with Python, including weighted median. This library is based on numpy, which is the only dependence.

The main methods are quantile and median. The input of quantile is a numpy array (_data_), a numpy array of weights of one dimension and the value of the quantile (between 0 and 1) to compute. The weighting is applied along the last axis. The method median is an alias to _quantile(data, weights, 0.5)_.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wquantiles, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size wquantiles-0.5.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page