How to find value of auto bin in pandas

Viewed 683

I want to know the value of the auto bin when I plot histograms in pandas.

db['Vt'].hist(bins='auto',color = "blue")

I don't know how to find the value of bins in this situation. Thanks for you answers!

1 Answers

bins='auto' : specifies automatically-determined bins directly in matplotlib. This uses the maximum of the Sturges and Freedman-Diaconis bin choice.

This works with matplotlib version >= 2.0 and numpy version >= 1.11

Check numpy.hist docs.

Related