parameters: (indexes)
return_statement: return [None] * indexes[0].nlevels
docstring: Give a consensus 'names' to indexes.
  
      If there's exactly one non-empty 'names', return this,
      otherwise, return empty.
  
      Parameters
      ----------
      indexes : list of Index objects
  
      Returns
      -------
      list
          A list representing the consensus 'names' found.
docstring_summary: Give a consensus 'names' to indexes.
docstring_tokens: Give a consensus names to indexes .
function: def get_consensus_names(indexes):
      """
      Give a consensus 'names' to indexes.
  
      If there's exactly one non-empty 'names', return this,
      otherwise, return empty.
  
      Parameters
      ----------
      indexes : list of Index objects
  
      Returns
      -------
      list
          A list representing the consensus 'names' found.
      """
      # find the non-none names, need to tupleify to make
      # the set hashable, then reverse on return
      consensus_names = {tuple(i.names) for i in indexes if com.any_not_none(*i.names)}
      if len(consensus_names) == 1:
          return list(list(consensus_names)[0])
      return [None] * indexes[0].nlevels
function_tokens: def get_consensus_names ( indexes ) : # find the non-none names, need to tupleify to make # the set hashable, then reverse on return consensus_names = { tuple ( i . names ) for i in indexes if com . any_not_none ( * i . names ) } if len ( consensus_names ) == 1 : return list ( list ( consensus_names ) [ 0 ] ) return [ None ] * indexes [ 0 ] . nlevels