woodwork
woodwork copied to clipboard
Handle `return_invalid_indices` parameter in LatLong and Ordinal validate methods
In #1315, we moved the logical type validation logic to validate
methods for the Ordinal and LatLong classes. This allows them to be called and validated at woodwork initialization. In that PR, however, we didn't implement the logic to return_invalid_indices
, which gets used by TableAccessor.validate_logical_types
to let users know which rows of their dataframe are invalid for their logical type.
We should implement this logic on Ordinal and LatLong logical types, so users can get information about which columns are invalid for that logical type.