Distplot bin size issue

Hi,

I’m using distplot in one of my dashboards based on Dash. For some characteristics, the plot looks fine. But for some, the bin sizes and bar heights are a little weird. Attaching screenshots for both. Can you please help out with this?

Seems like the default bin_size in distplot is 1. Is it possible to automatically determine the optimal bin_size for each characteristic?