title: Count frequency of entries in a pandas column, then plot them in plotly with X axis string lablel
body: <p>I have the following pandas column:</p>
  
  <pre><code>FuncGroup
  ABC
  ABC
  ABC
  ABC
  BCD
  BCD
  BCD
  SDS
  SDS
  ABC
  BCD
  SDS
  BCD
  </code></pre>
  
  <p>and I want to get this expected output in pandas dataframe:</p>
  
  <pre><code>pd['FunctionGroup','FunctionCount']
  ABC  4
  BCD  5
  SDS  3
  </code></pre>
  
  <p>How to do this, it's needed for graph purpose.</p>
  
  <p>edit 1:
  by referring to the below answers i did some modification of the original code
  to plot using plotly . Now all the counts are plotted but the X axis label is not coming using this method this is the reason i want the label and the count to be stored in a pd.</p>
  
  <p>reference code</p>
  
  <pre><code>otrace1 =go.Bar(
      #x=stock_opt_pe.index
      x=datalist['Function group'].nunique(),
      y=datalist['Function group'].value_counts(),
      text=datalistFg, # dont know what to give here to get a X axis label
      textposition = 'auto',
      #xaxis-type (enumerated: “-” | “linear” | “log” | “date” | “category” )
      #xaxis-type (enumerated: “-” | “linear” | “log” | “date” | “category” )
      #name='Function Group Vx RespPerson',
      #orientation = 'v',
      #marker = dict(
          #color = 'rgba(224, 224, 224, 0.6)',
          #line = dict(
              #color = 'rgba(246, 250, 206, 1.0)',
              #color = 'rgb(60, 60, 60)',
              #width = 0)
      #)
  )
  </code></pre>