| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- dataframeToArrow :: DataFrame -> IO (Ptr ArrowSchema, Ptr ArrowArray)
- columnToArrow :: Text -> Column -> IO (Ptr ArrowSchema, Ptr ArrowArray)
- arrowToDataframe :: Ptr () -> Ptr () -> IO DataFrame
- releaseSchemaImpl :: Ptr ArrowSchema -> IO ()
- releaseArrayImpl :: Ptr ArrowArray -> IO ()
Documentation
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 #