Comment on page
List Operations
This block is used to operate on lists. You can make your scenarios dynamic by making easy operations on lists.
Below you can see the list of available functions.
The list elements index always starts with 0. Please keep this in mind when creating your scenarios. For example, the indexes of the elements of the list [a,b,c] are 0, 1, and 2, respectively.
Append: The append function is used to add a new element to the list. Adds the last element of the list.
Extend: Extend function combines 2 lists. It outputs a single list by adding the second list elements to the end of the first list.
Insert: This function is used to add the desired element to the specified list index.
Remove: This function is used to delete a specific list item.
Pop: The pop function allows to delete the list item whose index is written.
Filter: Filters the list with the specified condition of the Filter function and gives the output of the new list.
Create: Converts a comma-separated string value into a list.
Get: Outputs a list element at a specific index number.
Sum: It collects the integer values in the list and returns it from the block output.
Len : Returns the length of a list.
Min: Returns the smallest element and index of a list.
Max: Returns the largest element of a list and its index address.
Index : Returns the index address of the element in a list.
Sort: Sorts the elements in the list from smallest to largest.
Reverse : Sorts the elements in the list from largest to smallest.
The
List Operations
node in AugeLab Studio allows you to perform various operations on a list. You can select an operation from a list of available methods and apply it to the input list.The
List Operations
node takes a list as input and applies the selected operation to the list. The available operations include append, extend, insert, remove, pop, filter, len, min, max, index, sort, reverse, sum, get, and create. The output is the result of the applied operation.- 1.Drag and drop the
List Operations
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input list to the
List
input socket. - 3.Select the desired operation from the dropdown list.
- 4.Configure the necessary input parameters for the selected operation, such as elements to append or index to insert.
- 5.The node will output the result of the applied operation to the output socket.
The
List Operations
node provides a dropdown list of available operations. You can select an operation from the list to apply it to the input list. Each operation has specific input and output socket configurations.The input and output sockets of the
List Operations
node dynamically update based on the selected operation. Each operation has its own set of input and output sockets, allowing you to configure the necessary parameters and retrieve the result of the operation.The
List Operations
node includes a MethodCollection
dictionary that defines the available methods and their corresponding input and output sockets. You can extend this dictionary to add new methods or modify existing ones.The
List Operations
node implements the following logic:- 1.Input Retrieval: The node retrieves the input list from the input socket.
- 2.Operation Selection: The node checks the selected operation from the dropdown list.
- 3.Input Validation: The node validates the input parameters based on the selected operation.
- 4.Operation Execution: The node performs the selected operation on the input list.
- 5.Result Generation: The node generates the result of the operation.
- 6.Output: The node outputs the result to the output socket.
- 1.Drag and drop the
List Operations
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input list to the
List
input socket. - 3.Select the desired operation from the dropdown list.
- 4.Configure the necessary input parameters for the selected operation.
- 5.Run the pipeline or execute the node to perform the list operation.
- 6.Retrieve the result from the output socket.
- 7.Use the result in downstream nodes or conditions as needed.
- The
List Operations
node allows you to perform various operations on a list in your data processing pipeline. - It provides a range of operations such as appending, extending, inserting, removing, filtering, sorting, and more.
- You can select the operation from a dropdown list and configure the necessary input parameters.
- The node dynamically updates its input and output sockets based on the selected operation.
- It supports generic input data, allowing you to apply list operations to different types of lists.
- The node enhances the flexibility and modularity of your pipeline by encapsulating list operations.
- It helps in data manipulation, transformation, and analysis tasks that involve working with lists.
- The
List Operations
node is applicable in various domains, including data science, machine learning, and algorithm development. - It can be combined with other nodes and operations to perform complex list manipulations and calculations.
- The node can be extended or customized to support additional list operations or specialized functions.
- It is recommended to connect the output of the
List Operations
node to nodes or steps that require the result of the operation. - The node provides a simple and efficient way to apply various operations to a list in your data pipeline.