We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf85767 commit 7f77ddfCopy full SHA for 7f77ddf
src/dask_histogram/core.py
@@ -1026,9 +1026,17 @@ def _partitioned_histogram(
1026
# Single awkward array object.
1027
if len(data) == 1 and data_is_dak:
1028
from dask_awkward.lib.core import partitionwise_layer as dak_pwl
1029
+ f = partial(_blocked_dak, histref=histref)
1030
- f = partial(_blocked_dak, weights=weights, sample=sample, histref=histref)
1031
- g = dak_pwl(f, name, data[0])
+ x = data[0]
1032
+ if weights is not None and sample is not None:
1033
+ g = dak_pwl(f, name, x, weights, sample)
1034
+ elif weights is not None and sample is None:
1035
+ g = dak_pwl(f, name, x, weights, None)
1036
+ elif weights is None and sample is not None:
1037
+ g = dak_pwl(f, name, x, None, sample)
1038
+ else:
1039
+ g = dak_pwl(f, name, x, None, None)
1040
1041
# Single object, not a dataframe
1042
elif len(data) == 1 and not data_is_df:
0 commit comments