You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In certain use cases it's quite useful to convert a RecordBatch or a Table to an array of hashes, e.g. when using Parquet for data exchange. Pyarrow provides this functionality as to_pylist function.
Basically I'd love to see an inverse of Arrow::RecordBatchBuilder.build.
rb=Arrow::RecordBatchBuilder.build(schema,data)assertrb.to_pylist == data
Additionally it would be great if it correctly handled struct and list data type, for example:
We have Arrow::RecordBatch#raw_records/Arrow::Table#raw_records and #each_raw_record.
But they don't add keys: [1, {"c3" => 3, "c4" => {"c5" => 5, "c6" => [6, 7]}}]
Describe the enhancement requested
In certain use cases it's quite useful to convert a
RecordBatch
or aTable
to an array of hashes, e.g. when using Parquet for data exchange. Pyarrow provides this functionality as to_pylist function.Basically I'd love to see an inverse of
Arrow::RecordBatchBuilder.build
.Additionally it would be great if it correctly handled struct and list data type, for example:
(Obviously the method wouldn't be named
to_pylist
.)Component(s)
Ruby
The text was updated successfully, but these errors were encountered: