# Merge Multiple Cells in Table?

**URL:** <https://community.plotly.com/t/merge-multiple-cells-in-table/23936>\
**Category:** 📊 Plotly Python\
**Created:** [May 28, 2019, 7:43pm UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936 "2019-05-28T19:43:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![reggiebizzle](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@reggiebizzle](https://community.plotly.com/u/reggiebizzle)\
**Post date:** [May 28, 2019, 7:43pm UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936/1 "2019-05-28T19:43:21Z")

</div>

Hi Everyone,

I am trying to merge cells in the table I have attached. Ideally, I’d like to have the cells containing “V1” merged together as one. The same for “V2” and “V3”. Below is my code as well, any idea how to pull this off?

 ![27%20PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/b/b0aaae250a7ddbfc42b4d98a679e9719a0ec08e4.png)

````auto
    header=dict(values=[' ', 'V1', 'V1', 'V1', 'V2', 'V2', 'V2', 'V3', 'V3', 'V3']),
    cells=dict(values=[[" ", "C1", "C2", "C3", "C4", "C5"],
                       ['1', '$', '%', 'C', 1000, 1000],
                       ['2', '$', '%', 'C', 1000, 1000],
                       ['3.', '$', '%', 'C', 1000, 1000],

                       ['1', '$', '%', 'C', 1000, 1000],
                       ['2', '$', '%', 'C', 1000, 1000],
                       ['3.', '$', '%', 'C', 1000, 1000],

                       ['1', '$', '%', 'C', 1000, 1000],
                       ['2', '$', '%', 'C', 1000, 1000],
                       ['3.', '$', '%', 'C', 1000, 1000],

                       ]))

data = [trace]
py.plot(data, filename='test.html', auto_open = True)```
````

---

<div class="post-metadata">

**Author:** ![flyingcujo](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@flyingcujo](https://community.plotly.com/u/flyingcujo)\
**Post date:** [May 29, 2019, 10:11am UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936/2 "2019-05-29T10:11:45Z")

</div>

If you can use `dash_table.DataTable`, there is a flag that will let you do this (`merge_duplicate_headers=True`). See [https://dash.plot.ly/datatable/style](https://dash.plot.ly/datatable/style) for more cool features

---

<div class="post-metadata">

**Author:** ![reggiebizzle](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@reggiebizzle](https://community.plotly.com/u/reggiebizzle)\
**Post date:** [May 29, 2019, 12:02pm UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936/3 "2019-05-29T12:02:07Z")

</div>

Thanks, I did see this. However, I’m not familiar with Dash and would prefer to use Python - the same functionality must be supported with Python, no?

---

<div class="post-metadata">

**Author:** ![flyingcujo](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@flyingcujo](https://community.plotly.com/u/flyingcujo)\
**Post date:** [May 29, 2019, 12:06pm UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936/4 "2019-05-29T12:06:16Z")

</div>

Dash is pretty easy to pick up (and it is a python framework) as their online docs are very good.

---

<div class="post-metadata">

**Author:** ![reggiebizzle](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@reggiebizzle](https://community.plotly.com/u/reggiebizzle)\
**Post date:** [May 29, 2019, 10:42pm UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936/5 "2019-05-29T22:42:13Z")

</div>

well, I’m glad I wasted all that time messing around building out my table in Dash only to find that I can’t upload my table or have it hosted by plotly like I can with my python generated graphs and tables. Need HTML.

Amazing that I spend all this money for a subscription service and I can’t get a straight answer for a basic feature from customer support.

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [June 1, 2019, 11:16am UTC](https://community.plotly.com/t/merge-multiple-cells-in-table/23936/6 "2019-06-01T11:16:20Z")

</div>

Hi @reggiebizzle,

I don’t think it’s possible to merge table cells using the `table` trace. Feel free to open a feature request with the plotly.js project at [https://github.com/plotly/plotly.js/issues](https://github.com/plotly/plotly.js/issues).

Also, just to be clear, this is a community forum not a paid customer support portal. See [https://support.plot.ly/plans](https://support.plot.ly/plans) for info on paid support options.

Thanks,  
-Jon
