<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS VA equivalent to .value_counts() from pandas in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827829#M16326</link>
    <description>&lt;P&gt;We are getting closer! To continue on your cars example, I'd like to do a bar chart representing how many 'make' were bought 7 times, 8 times, 9 times etc. In your screenshot, all makes have different buying frequencies but say if Ferrari, Skoda and Tesla were bought 7 times like Acura, the bar representing "bought 7 times" should have a height of 4. Any suggestions? : ))&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 12:52:39 GMT</pubDate>
    <dc:creator>yiyhio</dc:creator>
    <dc:date>2022-08-09T12:52:39Z</dc:date>
    <item>
      <title>SAS VA equivalent to .value_counts() from pandas</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827764#M16322</link>
      <description>&lt;P&gt;Hey guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset of 1.2 million rows, each representing an e-mail with email_id as primary key. A customer might have received several e-mails, and the row for each e-mail contains the customer_id it was sent to. I want to make a bar chart representing how many customers received 1, 2, 3, 4 etc. e-mails from us. Ideally, it should be done dynamically within SAS VA, so that the reader can use a slider to decide the period he/she wants to look into.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In python, I would count the number of received e-mails per customer_id, append these numbers as a column to the dataset and run .value_counts() on the appended column. How can this be done in the drag-and-drop environment of SAS VA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance : ))&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 07:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827764#M16322</guid>
      <dc:creator>yiyhio</dc:creator>
      <dc:date>2022-08-09T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA equivalent to .value_counts() from pandas</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827803#M16324</link>
      <description>&lt;P&gt;Hi. If I've understood your question correctly, this should be available automatically using the 'Frequency' attribute. Just set the level of aggregation needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take for example the cars dataset, frequency updates depending on what you add to the list table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarrySnart_0-1660041268854.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74273i7D5BF91ECF98C389/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarrySnart_0-1660041268854.png" alt="HarrySnart_0-1660041268854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarrySnart_1-1660041309573.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74274iA32144AAD096AAB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarrySnart_1-1660041309573.png" alt="HarrySnart_1-1660041309573.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you can create a calculation manually using a formula like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarrySnart_2-1660041321366.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74275i5C99E6AB74B93419/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarrySnart_2-1660041321366.png" alt="HarrySnart_2-1660041321366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 10:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827803#M16324</guid>
      <dc:creator>HarrySnart</dc:creator>
      <dc:date>2022-08-09T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA equivalent to .value_counts() from pandas</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827829#M16326</link>
      <description>&lt;P&gt;We are getting closer! To continue on your cars example, I'd like to do a bar chart representing how many 'make' were bought 7 times, 8 times, 9 times etc. In your screenshot, all makes have different buying frequencies but say if Ferrari, Skoda and Tesla were bought 7 times like Acura, the bar representing "bought 7 times" should have a height of 4. Any suggestions? : ))&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 12:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-equivalent-to-value-counts-from-pandas/m-p/827829#M16326</guid>
      <dc:creator>yiyhio</dc:creator>
      <dc:date>2022-08-09T12:52:39Z</dc:date>
    </item>
  </channel>
</rss>

