def _pop_header_name(row, index_col):
 none_fill = (lambda x: (None if (x == '') else x))
 if (index_col is None):
  return (none_fill(row[0]), row[1:])
 else:
  i = (index_col if (not is_list_like(index_col)) else max(index_col))
  return (none_fill(row[i]), ((row[:i] + ['']) + row[(i + 1):]))

def _pop_header_name ( row , index_col ) : none_fill = ( lambda x : ( None if ( x == '' ) else x ) ) if ( index_col is None ) : return ( none_fill ( row [ 0 ] ) , row [ 1 : ] ) else : i = ( index_col if ( not is_list_like ( index_col ) ) else max ( index_col ) ) return ( none_fill ( row [ i ] ) , ( ( row [ : i ] + [ '' ] ) + row [ ( i + 1 ) : ] ) )
for header rows in multiindex parsing .