We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cdb70d commit 1240878Copy full SHA for 1240878
1 file changed
src/ydata_profiling/model/summary_algorithms.py
@@ -55,7 +55,11 @@ def histogram_compute(
55
# manter a lógica original do max_bins
56
if len(bins) > hist_config.max_bins:
57
bins = np.histogram_bin_edges(finite_values, bins=hist_config.max_bins)
58
- weights = weights if weights is not None and len(weights) == hist_config.max_bins else None
+ weights = (
59
+ weights
60
+ if weights is not None and len(weights) == hist_config.max_bins
61
+ else None
62
+ )
63
64
stats[name] = np.histogram(
65
finite_values,
0 commit comments