Setting Specific Number of Bins for a Heatmap

So, I’ve run into a little bit of a deadlock.
px.density_heatmap() allows a weighted histogram, but the bin count cannot be directly set using xbins(start, end, size), you can only “recommend” a bins count using nbinsx=...
go.histogram2d allows setting bin count directly, but has no support for weighted histogram.

What am I missing?
IDC making it myself in NP, but I think density_heatmap needs to be more customizeable. Am I not getting the point of PX? Why omit parameters?

Hi @OriGummy, you can fine tune your bin sizes using .update_traces() like so:

fig.update_traces(xbins=dict(
        start=0.0,
        end=50.0,
        size=5
    ))

Thank you.