Skip to main content

Data and I/O

Loading, shaping and saving data: tables, files, arrays, lists, dictionaries and variables.

32 nodes. Right-click any node in the editor to read this documentation in the app.

Arrayโ€‹

๐Ÿ”Ž Indexโ€‹

id index ยท Array ยท Python export: yes

Pick one element (or row) out of an array by integer position.

Inputs

PortTypeDescription
arrayndarrayArray to index into.
indexintInteger position (negative counts from the end).

Outputs

PortTypeDescription
elementAnyarr[index] โ€” a scalar for 1-D input, a row for 2-D.

๐Ÿงฑ Reshapeโ€‹

id reshape ยท Array ยท Python export: yes

Reshape an array to a shape supplied by another node. The shape input is a list/array of ints (e.g. [2, 3]) or a single int for a 1-D result.

Inputs

PortTypeDescription
arrayndarrayArray to reshape.
shapelist[int] | intTarget shape, e.g. [2, 3]. A single int gives a 1-D array.

Outputs

PortTypeDescription
reshapedndarrayThe reshaped array.

๐Ÿ”€ Transposeโ€‹

id transpose ยท Array ยท Python export: yes

Transpose an array (reverse its axes). For a 2-D array this swaps rows and columns.

Inputs

PortTypeDescription
arrayndarrayArray to transpose.

Outputs

PortTypeDescription
transposedndarrayThe transposed array.

Dataโ€‹

โž• Append Listโ€‹

id append_list ยท Data ยท Python export: yes

Append an item to a list and output the new list. Inside a For Loop it accumulates across iterations: the list you wire in seeds iteration 0 and each later iteration adds to the running result.

Inputs

PortTypeDescription
listlistStarting list (seeds the first iteration).
itemAnyValue to append.

Outputs

PortTypeDescription
listlistThe list with the item appended.

๐Ÿท๏ธ Assign Columnโ€‹

id dataframe_assign_column ยท Data ยท Python export: yes

Add (or replace) a column of a DataFrame with a list, array or Series โ€” for example attach a model's predictions or cluster labels to the rows they belong to, then colour a Scatter Plot by that column. A Series is matched to rows by index; a list or array goes in by position and must have one value per row. The input table is not modified.

Inputs

PortTypeDescription
dataframeDataFrameTable to add the column to.
valuesSeries | list | ndarrayThe column's values (a Series is aligned by index).

Outputs

PortTypeDescription
dataframeDataFrameA copy of the table with the column added / replaced.

Fields

FieldTypeDefaultChoices
Column nametextnew_column

๐Ÿ”— Correlation Matrixโ€‹

id correlation_matrix ยท Data ยท Python export: yes

Pairwise correlation of a table's numeric columns (DataFrame.corr): Pearson (linear), Spearman (rank) or Kendall's tau (rank concordance). Columns: comma-separated, blank = all numeric. Wire into a Heatmap to visualise.

Inputs

PortTypeDescription
dataframeDataFrameTable with numeric columns.

Outputs

PortTypeDescription
correlationDataFrameSquare correlation matrix (columns x columns).

Fields

FieldTypeDefaultChoices
Methodselectpearsonpearson, spearman, kendall
Columns (comma-separated, blank = all)text

๐Ÿ“Š DataFrame Describeโ€‹

id dataframe_describe ยท Data ยท Python export: yes

Summary statistics for a DataFrame (count, mean, std, min, quartiles, max) โ€” like df.describe().

Inputs

PortTypeDescription
dataframeDataFrameTable to summarise.

Outputs

PortTypeDescription
summaryDataFrameOne column per numeric column, one row per statistic.

๐Ÿ” DataFrame Headโ€‹

id dataframe_head ยท Data ยท Python export: yes

Return the first N rows of a DataFrame (like df.head(n)) and show them as a table.

Inputs

PortTypeDescription
dataframeDataFrameTable to take the first rows from.

Outputs

PortTypeDescription
headDataFrameThe first n rows.

Fields

FieldTypeDefaultChoices
Rowsint5

๐Ÿงฎ DataFrame Tableโ€‹

id variable ยท Data ยท Python export: yes

An editable table of values (choose float / int / bool / string) that outputs a pandas DataFrame. Use the +R / +C buttons to grow it. For a NumPy array instead, use NumPy Array Table.

Outputs

PortTypeDescription
variableDataFrameThe table as a DataFrame (columns numbered from 0).

๐Ÿ”‘ Dict Getโ€‹

id dict_get ยท Data ยท Python export: yes

Look up a key in a dictionary; gives None if the key is missing. The key is read as JSON first (so 2 finds the int key 2), falling back to plain text.

Inputs

PortTypeDescription
dictdictDictionary to read from.
keystr | intKey to look up (overrides the Key field). Overrides the Key field when connected.

Outputs

PortTypeDescription
valueAnydict[key], or None if the key is absent.

Fields

FieldTypeDefaultChoices
Keytext

๐Ÿ—๏ธ Dict Keysโ€‹

id dict_keys ยท Data ยท Python export: yes

The keys of a dictionary, as a list.

Inputs

PortTypeDescription
dictdictDictionary to list the keys of.

Outputs

PortTypeDescription
keyslistThe dictionary's keys, in insertion order.

๐Ÿ“ Dict Setโ€‹

id dict_set ยท Data ยท Python export: yes

Return a copy of a dictionary with one key set (or replaced). The original is not modified. A missing dict input starts from {}.

Inputs

PortTypeDescription
dictdictDictionary to copy (optional โ€” defaults to empty).
keystr | intKey to set (overrides the Key field). Overrides the Key field when connected.
valueAnyValue to store under the key.

Outputs

PortTypeDescription
dictdictNew dictionary with the key set.

Fields

FieldTypeDefaultChoices
Keytext

๐Ÿ“ฆ Dictionaryโ€‹

id dict_literal ยท Data ยท Python export: yes

A literal dictionary, typed as a JSON object ({"a": 1, "b": 2}).

Outputs

PortTypeDescription
dictdictThe parsed dictionary.

Fields

FieldTypeDefaultChoices
Dictionary (JSON format)textarea{ "a": 1, "b": 2 }

๐Ÿ”ข Floatโ€‹

id scalar_float ยท Data ยท Python export: yes

A single floating-point number. Wire it into any port that takes a number to drive a parameter from the graph.

Outputs

PortTypeDescription
scalar_floatfloatThe number.

Fields

FieldTypeDefaultChoices
Valuefloat0.0

๐Ÿ–ผ๏ธ Image Showโ€‹

id image_show ยท Data ยท Python export: yes

Display a NumPy array as an image on the node (like imshow) and pass the array through unchanged. Greyscale (H x W), H x W x 1/3/4 and channel-first C x H x W arrays are understood; uint8 is shown as-is, floats are read as 0-1 (or 0-255). Tick 'Auto-scale' to stretch the min..max range across the display - useful for heatmaps and other non-image data.

Inputs

PortTypeDescription
arrayndarrayImage-like array to display.

Outputs

PortTypeDescription
arrayndarrayThe input array, unchanged.

Fields

FieldTypeDefaultChoices
Auto-scale (stretch min..max)checkboxfalse

๐Ÿ”ข Integerโ€‹

id scalar_int ยท Data ยท Python export: yes

A single integer. Wire it into any port that takes a whole number (sizes, counts, indices) to drive a parameter from the graph.

Outputs

PortTypeDescription
scalar_intintThe integer.

Fields

FieldTypeDefaultChoices
Valueint0

๐Ÿ“ Lengthโ€‹

id list_length ยท Data ยท Python export: yes

The number of items in a list, tuple, dict, string or array โ€” len(x).

Inputs

PortTypeDescription
sequencelist | tuple | dict | str | ndarrayAnything with a length.

Outputs

PortTypeDescription
nintNumber of items.

๐Ÿ“œ Listโ€‹

id list_obj ยท Data ยท Python export: yes

A literal list. Type it as JSON ([1, 2, 3] or ["a", "b"]) or as comma-separated numbers (1, 2, 3). Every run gets a fresh copy.

Outputs

PortTypeDescription
listlistThe parsed list.

Fields

FieldTypeDefaultChoices
List (JSON or CSV)textarea[0, 1, 2, 3, 4]

๐Ÿ”Ž List Indexโ€‹

id list_index ยท Data ยท Python export: yes

Pick one element out of a list, tuple or array by integer position (0-based; negative counts from the end).

Inputs

PortTypeDescription
sequencelist | tuple | ndarrayThe sequence to index into.
indexintPosition to read (overrides the Index field). Overrides the Index field when connected.

Outputs

PortTypeDescription
elementAnysequence[index].

Fields

FieldTypeDefaultChoices
Indexint0

๐Ÿ“ฅ Load .npyโ€‹

id numpy_load_npy ยท Data ยท Python export: yes

Load a NumPy .npy file into an array (np.load). Pickle support is off by default โ€” only enable it for files you trust.

Outputs

PortTypeDescription
arrayndarrayThe loaded array.

Fields

FieldTypeDefaultChoices
File (.npy)file
Allow pickle (only enable for trusted files)checkboxfalse
Memory-map (large files; read-only)checkboxfalse

๐Ÿ“ฆ Load .npzโ€‹

id numpy_load_npz ยท Data ยท Python export: yes

Load a NumPy .npz archive as a dict of {name: array}. Wire it into Dict Get to pull out one array.

Outputs

PortTypeDescription
arraysdict{array name: ndarray} for every array in the archive.

Fields

FieldTypeDefaultChoices
File (.npz)file

๐Ÿงฎ NumPy Array Tableโ€‹

id array_variable ยท Data ยท Python export: yes

An editable table of values (choose float / int / bool / string) that outputs a NumPy array (ndarray). Use the +R / +C buttons to grow it. For a pandas DataFrame instead, use DataFrame Table.

Outputs

PortTypeDescription
array variablendarrayThe table as a 2-D NumPy array.

๐Ÿ–ผ๏ธ Read Image + Previewโ€‹

id image_read ยท Data ยท Python export: yes

Load an image file as an RGB NumPy array (H x W x 3, uint8) and show a thumbnail on the node. For a preview-less reader (or to read greyscale / keep the original mode) see Read Image File in I/O; to look at an array you already have, use Image Show.

Outputs

PortTypeDescription
arrayndarrayRGB pixel array, shape (H, W, 3), dtype uint8.

Fields

FieldTypeDefaultChoices
Imageimage

๐Ÿ“ค Save .npyโ€‹

id numpy_save_npy ยท Data ยท Python export: yes

Write an array to a .npy file and output the path it wrote to, so later nodes can chain off it.

Inputs

PortTypeDescription
arrayndarrayArray to save.

Outputs

PortTypeDescription
filepathstrPath of the written file.

Fields

FieldTypeDefaultChoices
Output pathtextout.npy

๐Ÿ”ค Stringโ€‹

id string ยท Data ยท Python export: yes

A piece of text. Wire it into any port that takes a string (column names, file paths, keys).

Outputs

PortTypeDescription
string varstringThe text.

Fields

FieldTypeDefaultChoices
Textstringabc

๐Ÿชข Tupleโ€‹

id tuple_obj ยท Data ยท Python export: yes

A literal tuple, typed as comma-separated values (1, 2, 3 or "a", "b").

Outputs

PortTypeDescription
tupletupleThe parsed tuple.

Fields

FieldTypeDefaultChoices
Tuple (CSV)text1, 2, 3

I/Oโ€‹

๐Ÿ“„ CSV Readโ€‹

id csv_read ยท I/O ยท Python export: yes

Load a CSV file into a DataFrame (pandas.read_csv) and show its shape and first rows.

Outputs

PortTypeDescription
dataframeDataFrameThe parsed CSV.

Fields

FieldTypeDefaultChoices
Filefile

๐Ÿ–ผ๏ธ Read Image Fileโ€‹

id img_read ยท I/O ยท Python export: yes

Read an image file into a NumPy array using imageio, keeping the file's own mode and bit depth (no preview). To see the picture, wire the array into Image Show, or use Read Image + Preview in Data.

Inputs

PortTypeDescription
filepathstrImage path (overrides the Image field). Overrides the Image field when connected.

Outputs

PortTypeDescription
imagendarrayPixel array, shape (H, W[, C]).

Fields

FieldTypeDefaultChoices
Imagefile

๐Ÿ“— Spreadsheet Readโ€‹

id spreadsheet_read ยท I/O ยท Python export: yes

Read an Excel (.xlsx / .xlsm) or CSV file into a DataFrame. Excel files are previewed as a spreadsheet with their real formatting (fills, bold, borders, number formats) and sheet tabs; right-click the preview for a full-screen view. Legacy .xls is not supported.

Outputs

PortTypeDescription
dataframeDataFrameThe chosen sheet's data (first row as header if ticked).

Fields

FieldTypeDefaultChoices
File (.xlsx, .xlsm, .csv)file
Sheet name (blank = first)text
First row is headercheckboxtrue
Preview rowsint50

๐Ÿ“ค Spreadsheet Writeโ€‹

id spreadsheet_write ยท I/O ยท Python export: yes

Write a DataFrame to an .xlsx file (one sheet, optionally with the index) and pass the table through. Don't wire it into a Spreadsheet Read of the same file in the same graph โ€” they may run at the same time.

Inputs

PortTypeDescription
dataframeDataFrameTable to write.

Outputs

PortTypeDescription
dataframeDataFrameThe input table, unchanged.

Fields

FieldTypeDefaultChoices
Output file (.xlsx)textoutput.xlsx
Sheet nametextSheet1
Include index columncheckboxfalse

๐Ÿ’พ Write CSVโ€‹

id csv_write ยท I/O ยท Python export: yes

Write an array / list / DataFrame to a CSV file (no index column) and pass the data through. Wire a filename into the port to override the field.

Inputs

PortTypeDescription
dataDataFrame | ndarray | listData to write.
filenamestrOutput path (overrides the Filename field). Overrides the Filename field when connected.

Outputs

PortTypeDescription
dataAnyThe input data, unchanged.

Fields

FieldTypeDefaultChoices
Filenametextoutput.csv

๐Ÿ’พ Write Image Fileโ€‹

id img_write ยท I/O ยท Python export: yes

Write an image array to a file (format from the extension, e.g. .png) using imageio, and pass the array through.

Inputs

PortTypeDescription
imagendarrayPixel array to write, shape (H, W[, C]).
filenamestrOutput path (overrides the Filename field). Overrides the Filename field when connected.

Outputs

PortTypeDescription
imagendarrayThe input array, unchanged.

Fields

FieldTypeDefaultChoices
Filenametextout.png