ssapy_toolkit.IO.guess_delimiter
Functions
|
Guesses the delimiter used in a CSV file. |
- ssapy_toolkit.IO.guess_delimiter.guess_csv_delimiter(csv_file_path: str, sample_size: int = 32768, delimiters: List[str] = [',', ';', '\t', '|', ' ']) str[source]
Guesses the delimiter used in a CSV file.
- Args:
csv_file_path (str): The path to the CSV file. sample_size (int): The number of bytes to read from the file to guess the delimiter. delimiters (List[str]): The list of possible delimiters to test.
- Returns:
str: The detected delimiter or an error message if unable to detect.