Currently da.histogram is unable to handle the case where range is not specified or for that matter when range consists of lazy values. It would be nice for da.histogram to handle this case by simply using the min/max of the data as the default range (as is done in np.histogram). Further it would be good if da.histogram avoided (accidentally) computing lazy values used for the range.
Currently
da.histogramis unable to handle the case whererangeis not specified or for that matter whenrangeconsists of lazy values. It would be nice forda.histogramto handle this case by simply using the min/max of the data as the defaultrange(as is done innp.histogram). Further it would be good ifda.histogramavoided (accidentally) computing lazy values used for therange.