# Write data to Arrow file row by row

**URL:** https://discourse.julialang.org/t/write-data-to-arrow-file-row-by-row/59165
**Category:** General Usage
**Tags:** arrow
**Created:** [April 13, 2021, 7:40am UTC](https://discourse.julialang.org/t/write-data-to-arrow-file-row-by-row/59165 "2021-04-13T07:40:12Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![phantom](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@phantom](https://discourse.julialang.org/u/phantom)
#### Post date: [April 4, 2023, 1:04am UTC](https://discourse.julialang.org/t/write-data-to-arrow-file-row-by-row/59165/6 "2023-04-04T01:04:26Z")

</div>

Just in case it is helpful to anyone. As noted above I think this can be done now if you put the named tuples in a vector.

so something like

```julia
dat = [[(a=1, b=2)], [(a=3,b=4)]]
for d = dat
     Arrow.append("newfilepath",d)
end

```

bkamins has a good example and explanation of `Arrow.append`[here](https://discourse.julialang.org/t/arrow-stream-usage-clarification/89508/6).

Also if you are appending to a pre-existing `Arrow` file, it must be written like `Arrow.write(filename::String, tbl; file=false)` with the `file` keyword argument set to `false` for `append` to work. See [API Reference · Arrow.jl](https://arrow.juliadata.org/stable/reference/#Arrow.append)

---

_[View the full topic](https://discourse.julialang.org/t/write-data-to-arrow-file-row-by-row/59165)._
