def _get_names(self, arr):
        if isinstance(arr, DataFrame):
            return list(arr.columns)
        elif isinstance(arr, Series):
            if arr.name:
                return [arr.name]
            else:
                return
        else:
            try:
                return arr.dtype.names
            except __HOLE__:
                pass

        return None
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/base/data.py/ModelData._get_names