Import file to Table
Generic task that take a file as input and return a resource
Override the import_from_path method to import the file to the destination resource
Input
Output
Configuration
file_format
File format
string
auto
delimiter
Delimiter character. Only for parsing CSV files
string
auto
header
Row to use as the column names. By default the first row is used (i.e. header=0). Set header=-1 to not read column names.
int
format_header_names
If true, the column and row names are formatted to remove special characters and spaces (only '_' are allowed).
bool
index_column
Column to use as the row names. By default no index is used (i.e. index_column=-1).
int
-1
decimal
Character to recognize as decimal point (e.g. use ‘,’ for European/French data).
string
.
nrows
Number of rows to import. Useful to read piece of data.
int
comment
Character used to comment lines. Set empty to disable comment lines.
string
#
encoding
Encoding of the file, 'auto' for automatic detection.
string
auto
metadata_columns
Columns data to use to tag the rows of the table
List
-1
column
Metadata column to use to tag rows
string
keep_in_table
Set True to keep the column in the final table; False otherwise
bool
true