# How to make a model applicable to Turing.jl?

**URL:** https://discourse.julialang.org/t/how-to-make-a-model-applicable-to-turing-jl/80561
**Category:** New to Julia
**Created:** [May 5, 2022, 7:35pm UTC](https://discourse.julialang.org/t/how-to-make-a-model-applicable-to-turing-jl/80561 "2022-05-05T19:35:55Z")
**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: [May 5, 2022, 8:01pm UTC](https://discourse.julialang.org/t/how-to-make-a-model-applicable-to-turing-jl/80561/2 "2022-05-05T20:01:45Z")

</div>

No problems storing duals in either `Dict`s or `DataFrame`s:

```julia
julia> using DataFrames, ForwardDiff

julia> DataFrame(x = [ForwardDiff.Dual(0, 1)], y = [Dict(1 => ForwardDiff.Dual(1, 2))])
1×2 DataFrame
 Row │ x y                                 
     │ Dual… Dict…                             
─────┼───────────────────────────────────────────────────────
   1 │ Dual{Nothing}(0,1) Dict{Int64, ForwardDiff.Dual{Not…

```

so you’ll have to give us an [MWE](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) to help.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-a-model-applicable-to-turing-jl/80561)._
