• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dask / dask / 11129
53%

Build:
DEFAULT BRANCH: master
Ran 30 Mar 2019 06:49PM UTC
Jobs 2
Files 108
Run time 29min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
11129

cron

travis-ci

martindurant
correct quantile to handle unsorted quantiles (#4650)

* correct quantile to handle unsorted quantiles

Currently dask.dataframe.core.quantile(df, q) can silently give incorrect results when the list of quantiles, q, is not sorted. For instance quantile(dask.array.arange(100), [0.75, 0.50, 0.25]) gives incorrect results. This patch uses numpy's mergesort to ensure that the quantiles are sorted. Note that with the patch behavior still differs from that in pandas.DataFrame.quantile() where quantiles are calculated correctly while preserving order. While this patch does not duplicate the behavior of pandas because it does not preserve the order of the quantiles, it does at least avoids the silent errors.

* added tests for unsorted arg to quantile

* moved sorting of quantiles before index is created

* avoid modifying argument to quantile()

* leave q arg to quantiles alone if scalar

* eliminated trailing whitespace

* testing quantile added length 1 list and scalar case

17270 of 18884 relevant lines covered (91.45%)

1.83 hits per line

Jobs
ID Job ID Ran Files Coverage
3 11129.3 (PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true') 30 Mar 2019 06:49PM UTC 0
91.45
Travis Job 11129.3
7 11129.7 (PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true') 30 Mar 2019 07:19PM UTC 0
91.46
Travis Job 11129.7
Source Files on build 11129
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #11129
  • e8e2d76a on github
  • Prev Build on master (#11123)
  • Next Build on master (#11130)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc