Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Latest commit

 

History

History
1 lines (1 loc) · 622 Bytes

README.md

File metadata and controls

1 lines (1 loc) · 622 Bytes

The validate_columns function was developed in response to Code for San Jose's CSV-Validator project. The issue was that files to be uploaded should be verified as valid for CKAN. The function is passed a string argument which is the path/filename to the file to validate as CKAN ready. It raises CkanError exceptions: DuplicateColumnError in the event that one or more column name is duplicated, ColumnMismatchError in the event that not all rows in the file have the same number of columns, and NoDataError if the file contains only a single column or row.