@classmethod
    def _coerce_to_ndarray(cls, data):

        if not isinstance(data, (np.ndarray, Index)):
            if data is None or lib.isscalar(data):
                cls._scalar_data_error(data)

            # other iterable of some kind
            if not isinstance(data, (ABCSeries, list, tuple)):
                data = list(data)
            data = np.asarray(data)
        return data
Exports file to destination pointed at by the destination URL.
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._coerce_to_ndarray--crossover with--dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/abstractJobStore.py/AbstractJobStore.exportFile