# Reading DataFrames from JLD2 files

**URL:** <https://discourse.julialang.org/t/reading-dataframes-from-jld2-files/88543>\
**Category:** General Usage\
**Tags:** question, jld2, dataframes\
**Created:** [October 10, 2022, 11:25pm UTC](https://discourse.julialang.org/t/reading-dataframes-from-jld2-files/88543 "2022-10-10T23:25:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 10, 2022, 11:29pm UTC](https://discourse.julialang.org/t/reading-dataframes-from-jld2-files/88543/2 "2022-10-10T23:29:14Z")

</div>

Perhaps it is this change:

```julia
DataFrame is now a mutable struct and has three new fields 
metadata, colmetadata, and allnotemetadata; 
this change makes DataFrame objects serialized under earlier 
versions of DataFrames.jl incompatible with 
version 1.4 (#3055)

```

For anyone needing to convert `DataFrame` objects from 1.3 to 1.4 version (e.g. if you serialized your objects for short-term storage).

The easiest solution is to use `Tables.columntable` on `DataFrame` objects created under DataFrames.jl 1.3 version. Then serialize them. Next upgrade DataFrames.jl to 1.4. Deserialize the `NamedTuple`, and next transform it back to `DataFrame`.

---

_[View the full topic](https://discourse.julialang.org/t/reading-dataframes-from-jld2-files/88543)._
