Note: The main section of this article is only relevant if you are using our legacy scripting language (BRAINScript). We recommend using the new Tranform node (and derivative nodes) that support Python. The information in the comments relates to using Python.
To exclude specific records from your data, some useful functions are the following:
- where - A keyword commonly used in conjunction with emit to control the output based on a condition.
- execCount - A numerical variable (data type int) that can be used to provide a count of the number of records in a data set.
firstExec - A boolean variable which has a value of true for the only the first record.
Example: Exclude the first record in the data shown below.
Using the where clause:
where 'color' != "Red"
where execCount != 1
where not firstExec
Please sign in to leave a comment.