cellyzer/io.py
def read_xls(filepath, call_data_set=None, hash=True):
    """
    Read a dataset from a excel file
    :param filepath: path of the dataset file
    :return:
    """
    print("[x]  Reading Data From Excel File")

    if type(filepath) != str or type(hash) != bool:
        raise TypeError
    else:
        sample, fieldnames = xls_to_dict(filepath)
        _level = log.getLogger().level
        if 'latitude' in fieldnames and len(fieldnames) == 3:
            return create_cell_obj(sample, fieldnames, call_data_set)
        elif 'duration' in fieldnames and len(fieldnames) == 7:
            return create_call_obj(sample, fieldnames, hash)
        elif 'length' in fieldnames and len(fieldnames) == 5:
            return create_msg_obj(sample, fieldnames, hash)
        else:
            log.warning('Invalid Input')
            log.getLogger().setLevel(_level)

    Read a dataset from a excel file
    :param filepath: path of the dataset file
    :return:
    
Read a dataset from a excel file
Read a dataset from a excel file
def read_xls(filepath, call_data_set=None, hash=True):
    print("[x]  Reading Data From Excel File")
    if type(filepath) != str or type(hash) != bool:
        raise TypeError
    else:
        sample, fieldnames = xls_to_dict(filepath)
        _level = log.getLogger().level
        if 'latitude' in fieldnames and len(fieldnames) == 3:
            return create_cell_obj(sample, fieldnames, call_data_set)
        elif 'duration' in fieldnames and len(fieldnames) == 7:
            return create_call_obj(sample, fieldnames, hash)
        elif 'length' in fieldnames and len(fieldnames) == 5:
            return create_msg_obj(sample, fieldnames, hash)
        else:
            log.warning('Invalid Input')
            log.getLogger().setLevel(_level)
def read_xls ( filepath , call_data_set = None , hash = True ) : print ( "[x]  Reading Data From Excel File" ) if type ( filepath ) != str or type ( hash ) != bool : raise TypeError else : sample , fieldnames = xls_to_dict ( filepath ) _level = log . getLogger ( ) . level if 'latitude' in fieldnames and len ( fieldnames ) == 3 : return create_cell_obj ( sample , fieldnames , call_data_set ) elif 'duration' in fieldnames and len ( fieldnames ) == 7 : return create_call_obj ( sample , fieldnames , hash ) elif 'length' in fieldnames and len ( fieldnames ) == 5 : return create_msg_obj ( sample , fieldnames , hash ) else : log . warning ( 'Invalid Input' ) log . getLogger ( ) . setLevel ( _level )
Read a dataset from a excel file
Read a dataset from a excel file
"""
    Read a dataset from a excel file
    :param filepath: path of the dataset file
    :return:
    """
None
filepath
path of the dataset file
path of the dataset file
call_data_set
hash