def _get_divisions(taxdump_file):
with tarfile.open(taxdump_file) as tf:    <EOL><INDENT>with tf.extractfile('<STR_LIT>') as fh:<EOL><INDENT>df = pd.read_csv(fh, header=None, sep='<STR_LIT:|>', encoding='<STR_LIT:ascii>')<EOL><DEDENT><DEDENT>df = df.iloc[:, [<NUM_LIT:0>, <NUM_LIT:2>]]<EOL>df.iloc[:, <NUM_LIT:1>] = df.iloc[:, <NUM_LIT:1>].str.strip('<STR_LIT:\t>')<EOL>divisions = {}<EOL>for _, row in df.iterrows():<EOL><INDENT>divisions[row.iloc[<NUM_LIT:1>]] = row.iloc[<NUM_LIT:0>]<EOL><DEDENT>return divisions<EOL>
Returns a dictionary mapping division names to division IDs.