# Attaching simple metadata to types

**URL:** https://discourse.julialang.org/t/attaching-simple-metadata-to-types/70131
**Category:** General Usage
**Created:** [October 21, 2021, 7:09am UTC](https://discourse.julialang.org/t/attaching-simple-metadata-to-types/70131 "2021-10-21T07:09:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Jae-Mo\_Lihm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jae-mo_lihm/32/20145_2.png) [@Jae-Mo\_Lihm](https://discourse.julialang.org/u/Jae-Mo_Lihm)
#### Post date: [October 21, 2021, 7:25am UTC](https://discourse.julialang.org/t/attaching-simple-metadata-to-types/70131/2 "2021-10-21T07:25:16Z")

</div>

> [@How to add metadata info to a DataFrame?](https://discourse.julialang.org/t/how-to-add-metadata-info-to-a-dataframe/11168/95):
>
> Dear all, this topic has been inactive for a few months, but I just wanted to add that I implemented a package to solve the first problem posted, namely how to add metadata information to a DataFrame. The trick is to use [composition](https://en.wikipedia.org/wiki/Object_composition) and the [ReusePatterns](https://github.com/gcalderone/ReusePatterns.jl) package to automatically forward all method calls from one type to another. The relevant code is: using ReusePatterns struct DataFrameMeta \<: AbstractDataFrame p::DataFrame meta::Dict{String, Any} DataFrameMeta(args...; kw...) = …

It seems this link discusses the solution to my problem .

---

_[View the full topic](https://discourse.julialang.org/t/attaching-simple-metadata-to-types/70131)._
