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

mrocklin / dask / 535 / 2
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: astype-passthrough
DEFAULT BRANCH: master
Ran 30 May 2015 09:24AM UTC
Files 49
Run time 6s
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

30 May 2015 09:22AM UTC coverage: 93.728% (+0.02%) from 93.708%
535.2

push

travis-ci

mrocklin
Add dask.array.bincount

The implementation is fairly simple.  We call np.bincount on each chunk
followed by a sum on the result.  We also support the `weights=` kwarg
and **require** the `minlength=` kwarg.

Example
-------

In [1]: import dask.array as da

In [2]: x = da.random.binomial(100, 0.2, size=10000000, chunks=100000)

In [3]: %time da.bincount(x, minlength=100).compute()
CPU times: user 2.26 s, sys: 44.2 ms, total: 2.31 s
Wall time: 2.24 s
Out[3]:
array([     0,      0,      0,      6,     44,    136,    584,   2064,
         5938,  14772,  33084,  68568, 127704, 215525, 336015, 479691,
       637366, 790564, 911322, 979063, 993400, 944096, 849693, 719470,
       576965, 438738, 315740, 217278, 141412,  87920,  51906,  29428,
        15835,   8183,   4072,   1899,    878,     383,    164,    51,
           26,     12,      5,      0,      0,       0,      0,     0,
            0,      0,      0,      0,      0,       0,      0,     0,
            0,      0,      0,      0,      0,       0,      0,     0,
            0,      0,      0,      0,      0,       0,      0,     0,
            0,      0,      0,      0,      0,       0,      0,     0,
            0,      0,      0,      0,      0,       0,      0,     0,
            0,      0,      0,      0,      0,       0,      0,     0,
            0,      0,      0,      0])

4797 of 5118 relevant lines covered (93.73%)

0.94 hits per line

Source Files on job 535.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 535
  • Travis Job 535.2
  • b7d5d02c on github
  • Prev Job for on bincount (#534.2)
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