sasdata.guess module¶
- sasdata.guess.guess_column_count(split_csv: list[list[str]], starting_pos: int) int¶
Guess the amount of columns present in the data.
- sasdata.guess.guess_columns(col_count: int, dataset_type: DatasetType) list[str]¶
Based on the amount of columns specified in col_count, try to find a set of columns that best matchs the dataset_type.
- sasdata.guess.guess_dataset_type(filename: str) DatasetType¶
- sasdata.guess.guess_starting_position(split_csv: list[list[str]]) int¶
Try to look for a line where the first item in the row can be converted to a number. If such a line doesn’t exist, try to look for a line where the first item in the row can be converted to a number. If such a line doesn’t exist, then just return 0 as the starting position.