-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve parse_lines error message. (#3569)
Improve parse_lines error message: - Fix file offset at which the error was encountered (header and skipped lines were not included). - Remove leading spaces in error message due to use of raw string. - Add other ideas (specify correct dtype or increasing number of records used to infer the schema) to potentionaly avoid the error, as the error also show up quite frequently when an incorrect dtype was inferred. Previous error message: ComputeError: Could not parse 3.0 as dtype Int64 at column 3. The total offset in the file is 37 bytes. Consider running the parser `with_ignore_parser_errors=true` or consider adding 3.0 to the `null_values` list. Current error message: ComputeError: Could not parse `3.0` as dtype Int64 at column 3. The current offset in the file is 69 bytes. Consider specifying the correct dtype, increasing the number of records used to infer the schema, running the parser with `ignore_parser_errors=true` or adding `3.0` to the `null_values` list.
- Loading branch information
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters