The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

Group by count

5 replies Last reply

  1. Hi NodeBox folks

    I've trying to build a pie chart / wheel diagram from CSV import. I've got an input list of strings, and I'd like to size the arcs by the count of duplicate entries for each unique value in the list.

    So if my input list is something like "Alice, Alice, Alice, Bob, Bob", I' like to produce the list of numbers "3, 2" so I can size my arcs accordingly. In SQL land this would be a GROUP BY clause with a COUNT(*) in the SELECT part.

    Any ideas?

    Pete

    Copy link
  2. NodeBox team

    Hi,

    There is no built-in node that does this. However, I've created a custom one for you ("group_count") that you can use.

    I've added an example that counts all words from a speech by Obama and shows a frequency plot. Be sure to read the comments to understand the network.

    Let me know if you have any further questions.

    We're planning on adding better aggregation capabilities to NodeBox in the future.

    Best,

    F

    Copy link
  3. Comment version still needs to be released?

    Copy link
  4. NodeBox team

    Hi,

    Sorry for the confusion. A version of NodeBox with support for comments is
    not released yet. That said, the file will open fine, you just won't see
    any comments.

    We'll prepare a new release of NodeBox – with support for comments – this
    week.

    Best,

    F

    Copy link
  5. NodeBox team

    We just released a version supporting comments. Download it from the NodeBox site.

    Copy link
  6. Just what I needed - thanks so much Frederik!

    Pete

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply