# Outputing/Inputing vectors in DataFrames

**URL:** <https://discourse.julialang.org/t/outputing-inputing-vectors-in-dataframes/93099>\
**Category:** General Usage\
**Tags:** dataframes, csv\
**Created:** [January 17, 2023, 2:47pm UTC](https://discourse.julialang.org/t/outputing-inputing-vectors-in-dataframes/93099 "2023-01-17T14:47:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 17, 2023, 3:02pm UTC](https://discourse.julialang.org/t/outputing-inputing-vectors-in-dataframes/93099/2 "2023-01-17T15:02:51Z")

</div>

This is a very old question to which the answer is no: if you want to store additional structure with your data, don’t use csv.

See e.g. this prior discussion:

> [@DataFrames/CSV: how to read vectors from \*.csv?](https://discourse.julialang.org/t/dataframes-csv-how-to-read-vectors-from-csv/57883):
>
> Dear folks, unfortunately, I fail to read vectors from a \*.csv file. Here is an MWE: using CSV, DataFrames df = DataFrame( A=[[1,2,3], [4,5,6]] ) file = "my\_test.csv" CSV.write(file, df, delim=';') new\_df = DataFrame( CSV.File(file; delim=';' ) ) The problem is that column A in new\_df of type String: jjulia\> new\_df 2×1 DataFrame Row │ A │ String ─────┼─────────── 1 │ [1, 2, 3] 2 │ [4, 5, 6] I also tried: CSV.File( file; types=Dict(:B =\> Vector{Int}) ) and CSV.F…

---

_[View the full topic](https://discourse.julialang.org/t/outputing-inputing-vectors-in-dataframes/93099)._
