python/ray/data/read_api.py
def from_pandas(
    dfs: Union["pandas.DataFrame", List["pandas.DataFrame"]]
) -> Dataset[ArrowRow]:
    """Create a dataset from a list of Pandas dataframes.

    Args:
        dfs: A Pandas dataframe or a list of Pandas dataframes.

    Returns:
        Dataset holding Arrow records read from the dataframes.
    """
    import pandas as pd

    if isinstance(dfs, pd.DataFrame):
        dfs = [dfs]
    return from_pandas_refs([ray.put(df) for df in dfs])
Create a dataset from a list of Pandas dataframes.

    Args:
        dfs: A Pandas dataframe or a list of Pandas dataframes.

    Returns:
        Dataset holding Arrow records read from the dataframes.
    
Create a dataset from a list of Pandas dataframes.
Create a dataset from a list of Pandas dataframes .
def from_pandas(
    dfs: Union["pandas.DataFrame", List["pandas.DataFrame"]]
) -> Dataset[ArrowRow]:
    import pandas as pd
    if isinstance(dfs, pd.DataFrame):
        dfs = [dfs]
    return from_pandas_refs([ray.put(df) for df in dfs])
def from_pandas ( dfs : Union [ "pandas.DataFrame" , List [ "pandas.DataFrame" ] ] ) -> Dataset [ ArrowRow ] : import pandas as pd if isinstance ( dfs , pd . DataFrame ) : dfs = [ dfs ] return from_pandas_refs ( [ ray . put ( df ) for df in dfs ] )
Create a dataset from a list of Pandas dataframes.
Create a dataset from a list of Pandas dataframes .
"""Create a dataset from a list of Pandas dataframes.

    Args:
        dfs: A Pandas dataframe or a list of Pandas dataframes.

    Returns:
        Dataset holding Arrow records read from the dataframes.
    """
Dataset holding Arrow records read from the dataframes.
Dataset holding Arrow records read from the dataframes .
dfs
Union["pandas.DataFrame", List["pandas.DataFrame"]]
A Pandas dataframe or a list of Pandas dataframes.
A Pandas dataframe or a list of Pandas dataframes .