python/ray/data/read_api.py
def from_numpy(ndarrays: Union[np.ndarray, List[np.ndarray]]) -> Dataset[ArrowRow]:
    """Create a dataset from a list of NumPy ndarrays.

    Args:
        ndarrays: A NumPy ndarray or a list of NumPy ndarrays.

    Returns:
        Dataset holding the given ndarrays.
    """
    if isinstance(ndarrays, np.ndarray):
        ndarrays = [ndarrays]

    return from_numpy_refs([ray.put(ndarray) for ndarray in ndarrays])
Create a dataset from a list of NumPy ndarrays.

    Args:
        ndarrays: A NumPy ndarray or a list of NumPy ndarrays.

    Returns:
        Dataset holding the given ndarrays.
    
Create a dataset from a list of NumPy ndarrays.
Create a dataset from a list of NumPy ndarrays .
def from_numpy(ndarrays: Union[np.ndarray, List[np.ndarray]]) -> Dataset[ArrowRow]:
    if isinstance(ndarrays, np.ndarray):
        ndarrays = [ndarrays]
    return from_numpy_refs([ray.put(ndarray) for ndarray in ndarrays])
def from_numpy ( ndarrays : Union [ np . ndarray , List [ np . ndarray ] ] ) -> Dataset [ ArrowRow ] : if isinstance ( ndarrays , np . ndarray ) : ndarrays = [ ndarrays ] return from_numpy_refs ( [ ray . put ( ndarray ) for ndarray in ndarrays ] )
Create a dataset from a list of NumPy ndarrays.
Create a dataset from a list of NumPy ndarrays .
"""Create a dataset from a list of NumPy ndarrays.

    Args:
        ndarrays: A NumPy ndarray or a list of NumPy ndarrays.

    Returns:
        Dataset holding the given ndarrays.
    """
Dataset holding the given ndarrays.
Dataset holding the given ndarrays .
ndarrays
Union[np.ndarray, List[np.ndarray]]
A NumPy ndarray or a list of NumPy ndarrays.
A NumPy ndarray or a list of NumPy ndarrays .