def _import_words(wordlist, import_path):
    'Loads words from a csv file at import_path into `wordlist`.'
    new_words = pd.read_csv(import_path)
    words_added = 0
    repetitions = 0
    for (_, row) in new_words.iterrows():
        try:
            wordlist.add(row.Gender, row.Word)
            words_added += 1
        except ValueError:
            repetitions += 1
    return (words_added, repetitions)
Loads words from a csv file at import_path into `wordlist`.
def _import_words(wordlist, import_path):
    
    new_words = pd.read_csv(import_path)
    words_added = 0
    repetitions = 0
    for (_, row) in new_words.iterrows():
        try:
            wordlist.add(row.Gender, row.Word)
            words_added += 1
        except ValueError:
            repetitions += 1
    return (words_added, repetitions)