Math and text
Arithmetic and string operations.
13 nodes. Right-click any node in the editor to read this documentation in the app.
Math
➕ Add
id numpy_add · Math · Python export: yes
Element-wise a + b (np.add), with NumPy broadcasting. Outputs a DataFrame.
Inputs
| Port | Type | Description |
|---|---|---|
a | ndarray | DataFrame | number | Left operand. |
b | ndarray | DataFrame | number | Right operand. |
Outputs
| Port | Type | Description |
|---|---|---|
sum | DataFrame | a + b. |
📐 Arange
id numpy_arange · Math · Python export: yes
Evenly spaced values from start up to (not including) stop — np.arange. Each bound can be typed in or wired from another node.
Inputs
| Port | Type | Description |
|---|---|---|
start | float | First value (overrides Start). |
stop | float | End value, exclusive (overrides Stop). |
step | float | Spacing between values (overrides Step). |
Outputs
| Port | Type | Description |
|---|---|---|
array | ndarray | 1-D float array of evenly spaced values. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Start | float | 0 | |
| Stop | float | 10 | |
| Step | float | 1 |
➗ Divide
id numpy_divide · Math · Python export: yes
Element-wise a / b (np.divide), with NumPy broadcasting. Division by zero gives inf/nan rather than an error.
Inputs
| Port | Type | Description |
|---|---|---|
a | ndarray | DataFrame | number | Numerator. |
b | ndarray | DataFrame | number | Denominator. |
Outputs
| Port | Type | Description |
|---|---|---|
quotient | ndarray | a / b, element-wise (true division). |
✖️ Multiply
id numpy_multiply · Math · Python export: yes
Element-wise a * b (np.multiply), with NumPy broadcasting. This is NOT matrix multiplication.
Inputs
| Port | Type | Description |
|---|---|---|
a | ndarray | DataFrame | number | Left operand. |
b | ndarray | DataFrame | number | Right operand. |
Outputs
| Port | Type | Description |
|---|---|---|
product | ndarray | a * b, element-wise. |
🧱 Reshape
id numpy_reshape · Math · Python export: yes
Reshape an array to the comma-separated shape typed in the field (e.g. 2,3 or 4,1,1). The total number of elements must match. To take the shape from another node, use the Array "Reshape" node.
Inputs
| Port | Type | Description |
|---|---|---|
array | ndarray | DataFrame | list | Array to reshape. |
Outputs
| Port | Type | Description |
|---|---|---|
reshaped | ndarray | The reshaped array. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Shape | text | 2,2 |
🗜️ Squeeze
id numpy_squeeze · Math · Python export: yes
Remove length-1 axes from an array (np.squeeze), e.g. shape (1, 3, 1) becomes (3,).
Inputs
| Port | Type | Description |
|---|---|---|
array | ndarray | DataFrame | list | Array to squeeze. |
Outputs
| Port | Type | Description |
|---|---|---|
squeezed | ndarray | Array with size-1 axes removed. |
➖ Subtract
id numpy_subtract · Math · Python export: yes
Element-wise a - b (np.subtract), with NumPy broadcasting.
Inputs
| Port | Type | Description |
|---|---|---|
a | ndarray | DataFrame | number | Left operand. |
b | ndarray | DataFrame | number | Right operand. |
Outputs
| Port | Type | Description |
|---|---|---|
difference | ndarray | a - b. |
Text
🔗 Join
id string_join · Text · Python export: yes
Join a list into one string, putting the separator between items. Items that aren't text are converted with str().
Inputs
| Port | Type | Description |
|---|---|---|
items | list | The items to join (e.g. from Split or a List node). |
sep | str | Text placed between items (overrides the Separator field). Overrides the Separator field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
text | str | The joined string. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Separator | text | , |
🔡 Lowercase
id lowercase · Text · Python export: yes
Convert text to lower case.
Inputs
| Port | Type | Description |
|---|---|---|
text | str | Text to operate on (overrides the Text field). Overrides the Text field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
text | str | The lower-cased text. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Text | text |
🔁 Replace
id string_replace · Text · Python export: yes
Replace every occurrence of one piece of text with another (case-sensitive). Set 'Max replacements' to a positive number to limit how many are changed; -1 replaces all. An empty 'Find' leaves the text unchanged.
Inputs
| Port | Type | Description |
|---|---|---|
text | str | Text to operate on (overrides the Text field). Overrides the Text field when connected. |
old | str | Text to look for (overrides the Find field). Overrides the Find field when connected. |
new | str | Text to put in its place (overrides the Replace with field). Overrides the Replace with field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
text | str | The text with replacements applied. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Text | text | ||
| Find | text | ||
| Replace with | text | ||
| Max replacements (-1 = all) | int | -1 |
🪓 Split
id string_split · Text · Python export: yes
Split text into a list of strings. Leave 'Separator' blank to split on any whitespace (spaces, tabs, line breaks) and drop empty items; with a separator, splits exactly on it. 'Max splits' of -1 means no limit.
Inputs
| Port | Type | Description |
|---|---|---|
text | str | Text to operate on (overrides the Text field). Overrides the Text field when connected. |
sep | str | Separator; blank = any whitespace (overrides the field). Overrides the Separator field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
parts | list | The pieces, as a list of strings. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Text | text | ||
| Separator | text | , | |
| Max splits (-1 = no limit) | int | -1 |
✂️ Strip
id string_strip · Text · Python export: yes
Remove characters from both ends of the text. Leave 'Characters' blank to trim whitespace (spaces, tabs, line breaks); otherwise every character listed is trimmed.
Inputs
| Port | Type | Description |
|---|---|---|
text | str | Text to operate on (overrides the Text field). Overrides the Text field when connected. |
chars | str | Characters to trim; blank = whitespace (overrides the field). Overrides the Characters field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
text | str | The trimmed text. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Text | text | ||
| Characters | text |
🔠 Uppercase
id uppercase · Text · Python export: yes
Convert text to UPPER CASE.
Inputs
| Port | Type | Description |
|---|---|---|
text | str | Text to operate on (overrides the Text field). Overrides the Text field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
text | str | The upper-cased text. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Text | text |