How to create plotly histogram with two columns?

I have dataframe is this
df = pd.DataFrame({'_3321131460': ['col1', 'col1', 'col2'], '_3952604542': ['col1', 'col2', 'col2']})

So want to create graph shape like this

each columns have chart but one graph

x is columns name, and y is count and legend is two columns data.unique

im already use add_trace but error

HI @limaa this sounds like a pretty basic bar chart, the plotly docs should help you: