cudf.from_dataframe#
- cudf.from_dataframe(df, allow_copy: bool = False) DataFrame [source]#
Build a
DataFrame
from an object supporting the dataframe interchange protocol.Note
If you have a
pandas.DataFrame
, usefrom_pandas()
instead.- Parameters:
- dfDataFrameXchg
Object supporting the interchange protocol, i.e.
__dataframe__
method.- allow_copybool, default: True
Whether to allow copying the memory to perform the conversion (if false then zero-copy approach is requested).
- Returns: