def append(self, other):
to_concat = [self]<EOL>if isinstance(other, (list, tuple)):<EOL><INDENT>to_concat = to_concat + list(other)<EOL><DEDENT>else:<EOL><INDENT>to_concat.append(other)<EOL><DEDENT>for obj in to_concat:<EOL><INDENT>if not isinstance(obj, Index):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT><DEDENT>names = {obj.name for obj in to_concat}<EOL>name = None if len(names) > <NUM_LIT:1> else self.name<EOL>return self._concat(to_concat, name)<EOL>
Append a collection of Index options together.

Parameters
----------
other : Index or list/tuple of indices

Returns
-------
appended : Index