dataframe-3.5.0.0: A fast, safe, and intuitive DataFrame library.
Safe HaskellNone
LanguageHaskell2010

DataFrame.IO.Arrow

Description

Convert a DataFrame to Arrow C Data Interface structs for zero-copy transfer to Python (or any other Arrow consumer).

Synopsis

Documentation

dataframeToArrow :: DataFrame -> IO (Ptr ArrowSchema, Ptr ArrowArray) Source #

columnToArrow :: Text -> Column -> IO (Ptr ArrowSchema, Ptr ArrowArray) Source #

arrowToDataframe :: Ptr () -> Ptr () -> IO DataFrame Source #

Import an Arrow RecordBatch from raw C Data Interface pointers. Copies all data into GC-managed Haskell vectors, then calls the producer's release callbacks.

releaseSchemaImpl :: Ptr ArrowSchema -> IO () Source #

releaseArrayImpl :: Ptr ArrowArray -> IO () Source #