

def _ensure_compat_append(self, other):
    '\n        prepare the append\n\n        Returns\n        -------\n        list of to_concat, name of result Index\n        '
    name = self.name
    to_concat = [self]
    if isinstance(other, (list, tuple)):
        to_concat = (to_concat + list(other))
    else:
        to_concat.append(other)
    for obj in to_concat:
        if (isinstance(self, Index) and (obj.name != name) and (obj.name is not None)):
            name = None
            break
    to_concat = self._ensure_compat_concat(to_concat)
    to_concat = [(x._values if isinstance(x, Index) else x) for x in to_concat]
    return (to_concat, name)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._ensure_compat_append/VarMisuse@75/132 `obj`->`self`