# Construct a 2-d column array

**URL:** <https://discourse.julialang.org/t/construct-a-2-d-column-array/30617>\
**Category:** General Usage\
**Tags:** question, array\
**Created:** [November 2, 2019, 12:22pm UTC](https://discourse.julialang.org/t/construct-a-2-d-column-array/30617 "2019-11-02T12:22:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 2, 2019, 12:37pm UTC](https://discourse.julialang.org/t/construct-a-2-d-column-array/30617/2 "2019-11-02T12:37:30Z")

</div>

See this discussion for multiple suggestions (depending on whether you want to construct from existing contents, etc):

> [@How to force single column array?](https://discourse.julialang.org/t/how-to-force-single-column-array/26746):
>
> Hey guys, I want to make an array with only a single column, so ie. something like 4x1 Array{Int32,1} Whenever I use zeros or undef I get like this: zeros(Int32,4,1) 4×1 Array{Int32,2}: 0 0 0 0 Can I force the output to be a single array? Please note I know that it is possible to do: zeros(Int32,(4,)) 4-element Array{Int32,1}: 0 0 0 0 But I cannot use this notation since I am reading some data and depending on the datatype it might have 3 or 1 columns, but I do not know number of el…

---

_[View the full topic](https://discourse.julialang.org/t/construct-a-2-d-column-array/30617)._
