# How to add metadata info to a DataFrame?

**URL:** https://discourse.julialang.org/t/how-to-add-metadata-info-to-a-dataframe/11168
**Category:** Data
**Tags:** dataframes, metadata
**Created:** [May 26, 2018, 3:21pm UTC](https://discourse.julialang.org/t/how-to-add-metadata-info-to-a-dataframe/11168 "2018-05-26T15:21:35Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![ScottPJones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scottpjones/32/146_2.png) [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)
#### Post date: [May 26, 2018, 6:12pm UTC](https://discourse.julialang.org/t/how-to-add-metadata-info-to-a-dataframe/11168/13 "2018-05-26T18:12:27Z")

</div>

I hope that whatever approach to metadata is taken, that it is as generic as possible (which seemed to be the case in some of the above proposals), and that it can keep track of more than one source of metadata (i.e. one from the database, for display labels, etc.). Trying to merge them would be a difficult problem, I think it’s better to be able to handle different sorts from the start.

> [@A type for metadata?](https://discourse.julialang.org/t/a-type-for-metadata/10456/10):
>
> Consider the case of reading data from a relational database. Each column has metadata like data type, length, precision, allow nulls, etc. Often these are good information that is very handy when processing query results.

> [@pdeffebach](#):
>
> I think this essentially means that whatever metadata we have has to have at least two types, one for “nice” labels that are to be displayed and another that shows stuff about the variable that the user of a dataset needs to know. Stata handles this via a `label' metadata category and a` notes’ metadata category.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-add-metadata-info-to-a-dataframe/11168)._
