Skip to content

Commit

Permalink
Added histogram_bin_egdes with max_bins
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohaib90 committed Jan 20, 2023
1 parent 4486a2c commit 63a4ef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pandas_profiling/model/summary_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def histogram_compute(

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

return stats

Expand Down

0 comments on commit 63a4ef1

Please sign in to comment.