Skip to content

Commit 62572bb

Browse files
douglasdavisveprbl
andauthored
simplify
Co-authored-by: Dmitry Kalinkin <[email protected]>
1 parent c9b9596 commit 62572bb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/dask_histogram/core.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -1027,15 +1027,7 @@ def _partitioned_histogram(
10271027

10281028
f = partial(_blocked_dak, histref=histref)
10291029

1030-
x = data[0]
1031-
if weights is not None and sample is not None:
1032-
g = dak_pwl(f, name, x, weights, sample)
1033-
elif weights is not None and sample is None:
1034-
g = dak_pwl(f, name, x, weights, None)
1035-
elif weights is None and sample is not None:
1036-
g = dak_pwl(f, name, x, None, sample)
1037-
else:
1038-
g = dak_pwl(f, name, x, None, None)
1030+
g = dak_pwl(f, name, data[0], weights, sample)
10391031

10401032
# Single object, not a dataframe
10411033
elif len(data) == 1 and not data_is_df:

0 commit comments

Comments
 (0)