Using hvplot pandas dataframe to create a histogram but passing parameter bins='auto' or bins='fd'

Hello community,

Trying to utilize the hvplot API to crate a panel dashboard and want to create a histogram but relying on numpy.histogram_bin_edges; auto or fd but getting an error when changing the backend from matplotlib to holoviews.

Hope you can point me in the right direction.

Here the toy example:

x = np.linspace(norm.ppf(0.01),
            norm.ppf(0.99), 100)
df_toy = pd.DataFrame(x,columns=['x'])
df_toy['y'] = norm.pdf(df_toy['x'],df_toy['x'].mean(),df_toy['x'].std())


The error I got is:
TypeError: bins must be an integer, a string, or an array

If I utilize matplotlib works fine if using ‘fd’. With auto I got:

ValueError: shape mismatch: objects cannot be broadcast to a single shape

but if I create the chart using:


That works fine with auto.

Which version of HoloViews are you using? The bins='auto'/'fd' options weren’t added until the very recent 1.13.3 release.

There you go! was using: holoviews 1.13.2.
Thank you!