A dictionary containing column level configurations when reading and decoding
CSV file(s) from csv source.
Has the following fields:
required If value in this column is required. If set to true, throw an
error when it finds an empty value.
dtype Data type of this column. Could be int32, float32, bool, or string.
default Default value of this column.
isLabel Whether this column is label instead of features. If isLabel is
true for at least one column, the .csv() API will return an array of two
items: the first item is a dict of features key/value pairs, the second item
is a dict of labels key/value pairs. If no column is marked as label returns
a dict of features only.
A dictionary containing column level configurations when reading and decoding CSV file(s) from csv source. Has the following fields:
required
If value in this column is required. If set totrue
, throw an error when it finds an empty value.dtype
Data type of this column. Could be int32, float32, bool, or string.default
Default value of this column.isLabel
Whether this column is label instead of features. If isLabel istrue
for at least one column, the .csv() API will return an array of two items: the first item is a dict of features key/value pairs, the second item is a dict of labels key/value pairs. If no column is marked as label returns a dict of features only.