Back to Numerical Arrays (NumPy)
np.fromregex
Construct an array from a text file using regular expression parsing.
Syntax
np.fromregex(file, regexp, dtype?, options?)
Description
Construct an array from a text file using regular expression parsing.
Parameters
| Name | Description |
|---|---|
| file | - File source |
| regexp | - Regular expression with groups to extract |
| dtype(optional) | - Output data type |
| options(optional) | - Additional options |
Returns
Promise<NDArray>