Skip to main content
Version: 0.93

Adding a data table viewer

The TableConverter Operator allows you to represent lists of elements in a table view in the label section of the Snorkel Studio.

To produce the table view with a TableConverter operator

  1. Go to the Application Studio, and expand node.
    expand_node_button.webp
  2. Before trying to add or delete nodes, ensure you are on edit mode in the application studio and not read mode. To switch modes, use the mode selector in the top right corner of the Application Studio.
  3. If you don’t already have a blank node, select the three vertical dots on the node labeled Model, and then select Add node before. When prompted, select ChangeColumns.
    add_node_button.webp
  4. Select the three dot menu on the new node labeled ChangeColumns and select commit an operator.
  5. Type “TableConverter” in the menu search bar, and select the option.
  6. Fill out the fields of the TableConverter with strings relevant to the data.
    This example uses HAM versus SPAM example email data, so the field used here is participants. The output suffix field can be anything because it’s used to produce the name of the new table.
    table_converter_fields.webp
  7. After selecting commit, navigate back to the Application Studio.
  8. On the right side, scroll down to the bottom of the page to see the generated table generated. The name of the table is the field and output field suffix filled out in the last step.
    table_example.webp

To use the data table viewer

Editing columnsTo change the columns displayed by the table, select the column button in the top right corner of the table. Select (or de-select) the desired columns. The table changes its displayed elements based on your selections.
PagesIf there is enough data that more than one page is needed, move through the pages of data with the arrows in the bottom right corner.
Search barSearch through the tabular view using the search bar in the top left corner using the value of any label present.
Row countThe number of data rows present is displayed in the bottom right corner of the table.
ArrowsThe arrows next to each label organize the table with that label. If you set all the arrows upward, and then change one label to downward, the table will be organized based on that label. You can organize your data alphabetically, numerically, or by value based on the label selected.

These features are highlighted in this screenshot:

table_howto.webp