Browser API
These functions work with strings and can be used in any JavaScript environment.parseTxt
Parse a text string into an NDArray. Each row must have the same number of values.
Returns:
NDArray — 2-D array (or 1-D if a single row/column).
serializeTxt
Serialize an NDArray to a text string.
Returns:
string — Text representation of the array.
genfromtxt
Parse a text file with more flexible handling of missing values. Replaces missing values with a fill value instead of throwing.
Returns:
NDArray — Parsed array with missing values filled in.
fromregex
Extract data from a text file using a regular expression with capture groups.
Returns:
NDArray — Array with one row per match and one column per capture group.