6.1. cpforager.misc.derive_separator

cpforager.misc.derive_separator(file_path)

Derive separator of the csv file.

Parameters:

file_path (str) – complete path of the csv file to be read.

Returns:

the determined separator of the csv file.

Return type:

str

Separator is determined among the following list [";", "\t", ",", " "] by testing the first line of the csv file.