convert-text-to-datatable
Last updated
Last updated
convert-text-to-datatable
adaptor converts into a datatable using specified separators to denote the split for columns and new rows.
The default character used as column delimiter is ,
(comma), this can be changed by setting the delimiter
input. The default character used as row delimiter is (LF), this can be changed by setting the newline
input.
csv
Type: text
Required: Yes
The text to be converted to datatable.
delimiter
Type: text
Required: No
Character used as column delimiter. If unspecified, defaults to "," (comma).
newline
Type: text
Required: No
Character used as line separator. If unspecified, defaults to (newline).
trim
Type: boolean
Required: No
Specifies whether to ignore whitespace characters immediately around the separator. If unspecified, defaults to True
.
columns
Type: list
Required: No
List of column names to be added. If unspecified, first row of the file will be used as column names.
data
Type: datatable
A datatable.
text
:
data
:
1997
Ford
E350
2000
Mercury
Cougar
-> Converted CSV text to a datatable.
text
:
newline
: ;
(semicolon)
data
:
1997
Ford
E350
2000
Mercury
Cougar
-> Converted text with vertical bar as a value separator and semicolon as a row separator to a datatable.
text
:
columns
:
Column1
Column2
Column3
data
:
1997
Ford
E350
2000
Mercury
Cougar
-> Converted text without header line to a datatable.
Add small reference dataset into a workflow rather than adding a file or user-provided input.
delimiter
: |
()