# Sequentially add data to a DataFrame

**URL:** https://discourse.julialang.org/t/sequentially-add-data-to-a-dataframe/12927
**Category:** New to Julia
**Tags:** question, dataframes
**Created:** [August 6, 2018, 7:33am UTC](https://discourse.julialang.org/t/sequentially-add-data-to-a-dataframe/12927 "2018-08-06T07:33:55Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![jacobusmmsmit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacobusmmsmit/32/217669_2.png) [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)
#### Post date: [January 9, 2025, 1:47pm UTC](https://discourse.julialang.org/t/sequentially-add-data-to-a-dataframe/12927/5 "2025-01-09T13:47:50Z")

</div>

I’m sorry for necroing a thread that is over 6 years old, but I want to add that the comment marked “solution” will throw an error.

For an empty `DataFrame`, bkamins’ first comment works, but for an unitialised `DataFrame` of length `N`, as explained in [another thread](https://discourse.julialang.org/t/how-to-initialize-empty-dataframe-of-specified-size/67421/4), it’s far better to construct and populate the individual columns as length `N` `Vector`s first, then construct the DataFrame from these vectors.

---

_[View the full topic](https://discourse.julialang.org/t/sequentially-add-data-to-a-dataframe/12927)._
