Source: factory.import/ObjDataImportCSV.py
API for importing data from CSV files.
| Method | Signature | Description |
|---|---|---|
| detect_separator | detect_separator(filename: str) -> str |
Detects the CSV separator from a file sample. |
| prep_file | prep_file(filename: str) -> str |
Prepares the file for import. It creates a cleaned version of the file |
| open_file | open_file(filename: str) |
|
| close_file | close_file() |
|
| column_list | column_list() |
Returns the list of columns found in the file. |
| next_row | next_row() |
Reads and returns the next row from the CSV file. |