# Using Tables in ROOT

**URL:** <https://root-forum.cern.ch/t/using-tables-in-root/46077>\
**Category:** Newbie\
**Created:** [July 29, 2021, 5:34pm UTC](https://root-forum.cern.ch/t/using-tables-in-root/46077 "2021-07-29T17:34:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RENATO\_QUAGLIANI](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/renato_quagliani/32/19496_2.png) [@RENATO\_QUAGLIANI](https://root-forum.cern.ch/u/RENATO_QUAGLIANI)\
**Post date:** [July 29, 2021, 7:59pm UTC](https://root-forum.cern.ch/t/using-tables-in-root/46077/2 "2021-07-29T19:59:39Z")

</div>

Dear Diego  
I also struggled to find some code example using TTable objects. I guess one has to try it and follow the Doxygen to see whether it works fine for you .

Alternatively if you work within a python environment I would suggest to try one of the many packages for table printing , I usually use PrettyTable module or if you want to deal with latex directly you might want to look up pylatex.

Within c++ you can also find several tables c++ implementation. Among the ones I found , I guess the single header one from [GitHub - p-ranav/tabulate: Table Maker for Modern C++](https://github.com/p-ranav/tabulate) looks quite nice.

I hope this is what you meant by using tables in ROOT. I am not aware of direct conversion of histograms to tables, you can however navigate the histogram content and produce a nicely printed table with any external class or custom code.

Cheers  
Renato

---

_[View the full topic](https://root-forum.cern.ch/t/using-tables-in-root/46077)._
