(a, bins, right=False)
| 795 | |
| 796 | @derived_from(np) |
| 797 | def digitize(a, bins, right=False): |
| 798 | bins = asarray_safe(bins, like=meta_from_array(a)) |
| 799 | dtype = np.digitize(asarray_safe([0], like=bins), bins, right=False).dtype |
| 800 | return a.map_blocks(np.digitize, dtype=dtype, bins=bins, right=right) |
| 801 | |
| 802 | |
| 803 | def _searchsorted_block(x, y, side): |
nothing calls this directly
no test coverage detected