pycatflow/input.py
def find_delimiter(data):
    """
    This function finds and returns the delimiter of the given data.

    Parameters:
    data (string): data in which to look for the used delimiter

    Returns:
    (string): delimiter used in given data
    """
    if type(data) == str:
        headers = data.split("\n")[0]
    else:
        headers = data.decode("utf-8").split("\n")[0]
    delimiters = [",", ";", "\t"]  # Removed: , "\s", "|"
    l = {}
    for d in delimiters:
        count = 0
        for c in headers:
            if c.find(d) != -1:
                count += 1
        l[d] = count
    return [k for k, v in l.items() if v == max(l.values())][0]

    This function finds and returns the delimiter of the given data.

    Parameters:
    data (string): data in which to look for the used delimiter

    Returns:
    (string): delimiter used in given data
    
This function finds and returns the delimiter of the given data.
Parameters:
data (string): data in which to look for the used delimiter

delimiter used in given data
This function finds and returns the delimiter of the given data . Parameters : data ( string ) : data in which to look for the used delimiter delimiter used in given data
def find_delimiter(data):
    if type(data) == str:
        headers = data.split("\n")[0]
    else:
        headers = data.decode("utf-8").split("\n")[0]
    delimiters = [",", ";", "\t"]  
    l = {}
    for d in delimiters:
        count = 0
        for c in headers:
            if c.find(d) != -1:
                count += 1
        l[d] = count
    return [k for k, v in l.items() if v == max(l.values())][0]
def find_delimiter ( data ) : if type ( data ) == str : headers = data . split ( "\n" ) [ 0 ] else : headers = data . decode ( "utf-8" ) . split ( "\n" ) [ 0 ] delimiters = [ "," , ";" , "\t" ] l = { } for d in delimiters : count = 0 for c in headers : if c . find ( d ) != - 1 : count += 1 l [ d ] = count return [ k for k , v in l . items ( ) if v == max ( l . values ( ) ) ] [ 0 ]
This function finds and returns the delimiter of the given data.
This function finds and returns the delimiter of the given data .
"""
    This function finds and returns the delimiter of the given data.

    Parameters:
    data (string): data in which to look for the used delimiter

    Returns:
    (string): delimiter used in given data
    """ # Removed: , "\s", "|"

data