# DataFrame with mix types

**URL:** <https://discourse.julialang.org/t/dataframe-with-mix-types/87134>\
**Category:** Data\
**Tags:** question, dataframes\
**Created:** [September 12, 2022, 1:32pm UTC](https://discourse.julialang.org/t/dataframe-with-mix-types/87134 "2022-09-12T13:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgmendes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lgmendes/32/34577_2.png) [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Post date:** [September 12, 2022, 1:32pm UTC](https://discourse.julialang.org/t/dataframe-with-mix-types/87134/1 "2022-09-12T13:32:53Z")

</div>

How can I create a dataframe with only one row composed by a Vector and a Int . When I do `DataFrame(a=[1,2,3],b=1)` the result dataFrame is a 3x2 DataFrame of Ints.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [September 12, 2022, 1:36pm UTC](https://discourse.julialang.org/t/dataframe-with-mix-types/87134/2 "2022-09-12T13:36:23Z")

</div>

```julia
julia> DataFrame(:a => [[1,2,3] ],:b => 1)
1×2 DataFrame
 Row │ a b
     │ Array… Int64
─────┼──────────────────
   1 │ [1, 2, 3] 1

```
