I'm trying to make a horizontal histogram with my data but I'm getting this error:
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
I always get a beautiful histogram when I use
px.histogram(df, x="columnName")
But the moment I try to change it to horizontal, it doesn't work.
px.histogram(df, y="columnName") or px.histogram(df, x="columnName", orientation='h') don't work.
I have no data with NoneType and I even tried px.histogram(y=np.random.randn(500)) but it still doesn't work.
I tried using go.Figure(data=[go.Histogram(y=df['columnName'])]) which does give me a horizontal hist but then I'm unable to change the colors according to a different column.
Any help would be appreciated, thanks in advance :)



