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 78cfb30 commit e689665Copy full SHA for e689665
src/pandas_profiling/model/summary_algorithms.py
@@ -36,8 +36,8 @@ def histogram_compute(
36
stats = {}
37
bins = config.plot.histogram.bins
38
bins_arg = "auto" if bins == 0 else min(bins, n_unique)
39
- bins_arg = np.histogram_bin_edges(finite_values, bins=bins_arg)
40
- stats[name] = np.histogram(finite_values, bins=bins_arg, weights=weights)
+ bins = np.histogram_bin_edges(finite_values, bins=bins_arg)
+ stats[name] = np.histogram(finite_values, bins=bins, weights=weights)
41
42
max_bins = config.plot.histogram.max_bins
43
if bins_arg == "auto" and len(stats[name][1]) > max_bins:
0 commit comments