title: Plot the count of a Pandas df column using Plotly
body: <p>I have a df column where its data are only categorical (e.g., [a, b, c, a, a, d, c, b, etc]).
  I want to plot the count of these data using plotly count bar (bar chart).</p>
  <p>I have calculated the count of the data using <code>df.groupby('&lt;col_name&gt;')['&lt;col_name&gt;'].count()</code>, but this returns a series data structure so I will only have the count data (1-D).</p>
  <p>How can I get the count result and the corresponding data item in the resulting output efficiently?</p>
  <p>I want to get this output and plot the bar chart using Plotly:</p>
  <pre><code>import plotly.express as px
  
  fig = px.bar(count_df, x=&quot;&lt;col_name&gt;&quot;, y=&quot;count&quot;, color=&quot;count&quot;, title=&quot;----------&quot;)
  fig.show()
  </code></pre>