def add_wedge_spacing(df, spacing):
 if isinstance(spacing, list):
  for (i, space) in enumerate(spacing):
   df.ix[((df['level'] == i), 'inners')] += space
 else:
  df.ix[((df['level'] > 0), 'inners')] += spacing

def add_wedge_spacing ( df , spacing ) : if isinstance ( spacing , list ) : for ( i , space ) in enumerate ( spacing ) : df . ix [ ( ( df [ 'level' ] == i ) , 'inners' ) ] += space else : df . ix [ ( ( df [ 'level' ] > 0 ) , 'inners' ) ] += spacing
add spacing to the inners column of the provided data based on level .