xdufacool/score_helper.py
def find_column_index(header, fields):
    """Find the corresponding column indices of given fields."""
    indices = []
    for txt in fields:
        for idx, col in enumerate(header):
            if col.find(txt) >= 0:
                indices.append(idx)
                break
    return indices
Find the corresponding column indices of given fields.
Find the corresponding column indices of given fields.
Find the corresponding column indices of given fields .
def find_column_index(header, fields):
    indices = []
    for txt in fields:
        for idx, col in enumerate(header):
            if col.find(txt) >= 0:
                indices.append(idx)
                break
    return indices
def find_column_index ( header , fields ) : indices = [ ] for txt in fields : for idx , col in enumerate ( header ) : if col . find ( txt ) >= 0 : indices . append ( idx ) break return indices
Find the corresponding column indices of given fields.
Find the corresponding column indices of given fields .
"""Find the corresponding column indices of given fields."""
header
fields