Instance Property

isValid

A Boolean value that indicates whether the data table is valid.

Declaration

var isValid: Bool { get }

Discussion

Inspect isValid after you create or mutate a data table to ensure the data table is still valid. If it is false, the data table encountered an error and you cannot use it for training or subsequent operations. The following are some of the actions that can invalidate a data table:

  • Adding a column with the name of a column that already exists in the data table

  • Adding an invalid column

  • Appending another data table with different column names

  • Appending another data table with different column types (for a given column name)

See Also

Handling Data Table Errors

var error: Error?

The underlying error present when the data table is invalid.