fix: Decimal values for Histogram bins (#32253)

(cherry picked from commit ffe9244458)
This commit is contained in:
Michael S. Molina
2025-02-14 09:04:23 -03:00
committed by Michael S. Molina
parent ed217ce903
commit c7cc436b0b
6 changed files with 112 additions and 37 deletions

View File

@@ -60,8 +60,7 @@ def histogram(
# convert the bin edges to strings
bin_edges_str = [
f"{int(bin_edges[i])} - {int(bin_edges[i+1])}"
for i in range(len(bin_edges) - 1)
f"{bin_edges[i]} - {bin_edges[i+1]}" for i in range(len(bin_edges) - 1)
]
def hist_values(series: Series) -> np.ndarray: