Edit rules

The key task in data preparation is to create rules for data transformation (usually refinement). The transformation rules and input/output specifications are combined to be applied to actual data or other similar data, or scheduling is performed for such tasks.

Below are instructions on creating rules, checking the results, and modifying or deleting rules.

The Edit Rules page consists of the following:

../../_images/edit_rules_1.en.png
  1. Column type, name, and menu button

  2. Menu for simple rule creation

  3. Rule list and insert button (appears when cursor is placed in between rules)

  4. Enabled when undo and redo are available

  5. Panel to enter rule details

  6. Column value distribution, distinct count, type mismatch, null value, etc.

Create a rule

Using the column header menu

  1. Select a target column by clicking the column header.

    • Press the function key to select multiple columns.

    • Depending on your OS, click while holding the ^ or ⌘ key to select/deselect a column (toggle).

    • Click while holding the Shift key to select a range.

    ../../_images/edit_rules_2.png
  2. Click the header_menu icon in the header of a selected column to open the header menu, and select a transformation command.

    • Among the commands, drop and settype are performed upon clicking.

    ../../_images/edit_rules_3.png
  3. To add details, fill out the command input panel below, and click the Add button.

    ../../_images/edit_rules_4.png
  4. Some commands can be performed by selecting a distribution bar.

    • Click a distribution bar to filter the data based on the selected range (toggle).

    • Click the type mismatch or null value graph to set conditions for those values.

    ../../_images/edit_rules_13.png

Using the command input panel

  1. Select a transformation rule (command) in the command input panel.

    ../../_images/edit_rules_5.en.png
  2. Add details as needed, and click the Add button.

    • Target columns can be selected using the input panel. You can also designate a column by clicking the column header.

    ../../_images/edit_rules_6.en.png

Inserting into a rule list

  1. In the list of rules of the right, place the cursor over the boundary where you wish to insert a new rule. The + Insert rule button appears. Press this button.

    ../../_images/edit_rules_7.en.png
  2. Select a transformation rule (command) in the command input panel. Add details as needed, and click the Add button.

    • When a rule is inserted in this manner, all subsequent rules are affected.

    • Rules that cannot be normally executed are displayed in red. In this case, they will revert to the results obtained in the previous step.

    ../../_images/edit_rules_6.en.png

Edit a created rule

Editing a rule

  1. In the list of rules on the right, place the cursor over the rule to be edited. The edit button appears. Press this button.

    ../../_images/edit_rules_8.en.png
  2. Edit the rule in the command input panel and press the Done button.

    • When a rule is edited in this manner, all subsequent rules are affected.

    ../../_images/edit_rules_12.en.png

Deleting a rule

In the list of rules on the right, place the cursor over the rule to be deleted. The delete button appears. Press this button.

  • When a rule is deleted in this manner, all subsequent rules are affected.

../../_images/edit_rules_10.en.png

Undo and redo

On the upper right of the rule list are icons to perform undo and redo.

../../_images/edit_rules_11.en.png

To revert to a state before executing a command, press the undo button.

  • The dataset reverts to the state before the last transformation (including rule creation, modification, and deletion).

  • All rules that were affected also revert to their previous states.

To perform the same command again, press the redo button.

  • Pressing redo is faster than following the steps to perform the same command again. It is because the transformation results are stored in memory.