C3 AI Documentation Home

Limit

Set the maximum number of rows in a dataset in Visual Notebooks.

Configuration

FieldDescription
Name default=noneField to name the chart
An optional user-specified node name displayed in the workspace, both on the node and in the dataframe as a tab.
Limit default=1000Number of rows
Set the number of rows to be included in the output dataset.

Node Inputs/Outputs

InputA dataset from a preceding node.
OutputA dataset containing the specified number of rows.

Example limit node

Figure 1: Example output

Examples

The input data used in this example contains 700 rows of information about sharks.

The dataframe shown in Figure 2 is used in this example. Use the Limit node to specify the desired number of rows that are shown.

First, run the node with the default settings:

  1. Connect the Limit node to an existing node. In this case, it has been connected to the example CSV, sharks.csv.
  2. Select the Limit node to configure it.
  3. For the Limit, enter the number of rows desired to be shown. For example, in Figure 2 "20" is entered in order to showcase 20 rows of data.
  4. Select Run.

Example limit node

Figure 2: Example limit node

Was this page helpful?