Skip to content

Commit e689665

Browse files
committed
fix: issue#915 bin args
1 parent 78cfb30 commit e689665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pandas_profiling/model/summary_algorithms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def histogram_compute(
3636
stats = {}
3737
bins = config.plot.histogram.bins
3838
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)
39+
bins = np.histogram_bin_edges(finite_values, bins=bins_arg)
40+
stats[name] = np.histogram(finite_values, bins=bins, weights=weights)
4141

4242
max_bins = config.plot.histogram.max_bins
4343
if bins_arg == "auto" and len(stats[name][1]) > max_bins:

0 commit comments

Comments
 (0)