def num_row_elements(row):
    '''Get number of elements in CSV row.'''
    try:
        rowset = set(row)
        rowset.discard('')
        return len(rowset)
    except __HOLE__:
        return 0
dataset/ETHPy150Open xesscorp/KiPart/kipart/common.py/num_row_elements