Skip to content

Commit 56e102a

Browse files
committed
fix: issue#915 added histogram_bin_egdes with max_bins
1 parent 0fabbf7 commit 56e102a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pandas_profiling/model/summary_algorithms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def histogram_compute(
4141

4242
max_bins = config.plot.histogram.max_bins
4343
if bins_arg == "auto" and len(stats[name][1]) > max_bins:
44-
stats[name] = np.histogram(finite_values, bins=max_bins, weights=None)
44+
bins_arg = np.histogram_bin_edges(finite_values, bins=max_bins)
45+
stats[name] = np.histogram(finite_values, bins=bins_arg, weights=None)
4546

4647
return stats
4748

0 commit comments

Comments
 (0)