title: How to get a calculated scalar out of a dataframe
body: <p>I have a <code>dataframe</code> as shown below. I want to group and return the count of <code>Campeão</code> registers, so that I can have this scalar into a output text for users.</p>
  <p><a href="https://i.stack.imgur.com/4kMYq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4kMYq.png" alt="enter image description here" /></a></p>
  <p>I'm using this code to display a table with each correspondent value</p>
  <p><code>a = df['Macro RFM'].value_counts().reset_index()</code></p>
  <p><code>st.dataframe(a)</code></p>
  <p><a href="https://i.stack.imgur.com/tnV9E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tnV9E.png" alt="enter image description here" /></a></p>
  <p>How can I get the result for each class (<code>Macro RFM</code>)? I mean, I want to output something like that:
  <code>st.write(f'We got {X} champions')</code></p>
  <pre><code>direct translation (campeão = champion)
  </code></pre>