Apache Arrow
Kotlin DataFrame supports reading from and writing to Apache Arrow files.
Requires the dataframe-arrow
module, which is included by default in the general dataframe
artifact and in %use dataframe
for Kotlin Notebook.
Read
DataFrame
supports both the Arrow interprocess streaming format and the Arrow random access format.
You can read a DataFrame
from Apache Arrow data sources (via a file path, URL, or stream) using the readArrowFeather()
method:
val df = DataFrame.readArrowFeather("example.feather")
val df = DataFrame.readArrowFeather("https://kotlin.github.io/dataframe/resources/example.feather")
Write
A DataFrame
can be written to Arrow format using the interprocess streaming or random access format. Output targets include WritableByteChannel
, OutputStream
, File
, or ByteArray
.
See Writing to Apache Arrow formats for more details.
22 August 2025