# Errors loading dataframes from JLD files in Pluto

**URL:** <https://discourse.julialang.org/t/errors-loading-dataframes-from-jld-files-in-pluto/74948>\
**Category:** Pluto\
**Tags:** dataframes\
**Created:** [January 20, 2022, 5:09pm UTC](https://discourse.julialang.org/t/errors-loading-dataframes-from-jld-files-in-pluto/74948 "2022-01-20T17:09:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [January 20, 2022, 5:09pm UTC](https://discourse.julialang.org/t/errors-loading-dataframes-from-jld-files-in-pluto/74948/1 "2022-01-20T17:09:39Z")

</div>

I load a `df` from a `*.jld` file and try to do stuff with one of the columns.

In VS Code, it works, but in in Pluto, I get errors.

I’ve tried a couple different ways of [indexing the df](https://dataframes.juliadata.org/stable/lib/indexing/), but I’m not sure how to get into the df that was loaded.

Working fine in VS Code.

```julia
using DataFrames, JLD
df = DataFrame()
push!(df, (a=1, b=2))
save(joinpath("data.jld"), "df", df)
df2 = load("data.jld","df")
df2.a

```

```julia
1-element Vector{Int64}:
 1

```

Not working in Pluto.

```julia
begin
	using DataFrames, JLD
	df = DataFrame()
	push!(df, (a=1, b=2))
	save(joinpath("data.jld"), "df", df)
	df2 = load("data.jld","df")
end

```

(not sure how to best copy and paste the cell output)

```julia
JLD.var"##DataFrames.DataFrame#442"
columns
AbstractVector{T} where T
Int64

1

Int64

2

colindex
JLD.var"##DataFrames.Index#445"
lookup
JLD.var"##JLD.AssociativeWrapper{Core.Symbol,Core.Int64,Base.Dict{Core.Symbol,Core.Int64}}#448"
keys
Symbol

:a

:b

values
Int64

1

2

names
Symbol

:a

:b

```

The data seems to load without errors, but I can’t figure out how to use it:

```julia
df2.a

```

```julia
type ##DataFrames.DataFrame#442 has no field a

    getproperty(::JLD.var"##DataFrames.DataFrame#442", ::Symbol)@Base.jl:33
    top-level scope@Local: 1[inlined]

```

---

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [February 7, 2022, 3:30pm UTC](https://discourse.julialang.org/t/errors-loading-dataframes-from-jld-files-in-pluto/74948/2 "2022-02-07T15:30:19Z")

</div>

The problem is bypassed by saving the dataframe with [JLD2](https://github.com/JuliaIO/JLD2.jl) rather than JLD and using JLD2 to open in the Pluto notebook.
