Copy from DataFrame
You can copy from Pandas or Polars DataFrames directly into Kùzu using the COPY FROM
command.
This is useful when you are doing your data transformations with either of these libraries and then
want to bulk insert data from the resulting DataFrame into Kùzu.
Because the Polars DataFrame scanner is built on top of the PyArrow layer, you can also copy data from in-memory Arrow tables directly into Kùzu.
Pandas
You can directly copy from a Pandas DataFrame into Kùzu. Both numpy-backed and PyArrow-backed Pandas DataFrames are supported.
Polars
You can utilize an existing Polars DataFrame to copy data directly into Kùzu.
Arrow tables
You can utilize an existing in-memory PyArrow table to copy data directly into Kùzu (in fact, the Polars DataFrame example above also leverages scanning from PyArrow tables under the hood).