def _make_dictnames(tmp_arr, offset=0):
 col_map = {}
 for (i, col_name) in enumerate(tmp_arr):
  col_map.update({(i + offset): col_name})
 return col_map

def _make_dictnames ( tmp_arr , offset = 0 ) : col_map = { } for ( i , col_name ) in enumerate ( tmp_arr ) : col_map . update ( { ( i + offset ) : col_name } ) return col_map
helper function to create a dictionary mapping a column number to the name in tmp_arr .