# Some Error when creating treemap

**URL:** <https://community.plotly.com/t/some-error-when-creating-treemap/42001>\
**Category:** 📊 Plotly Python\
**Created:** [July 5, 2020, 4:41am UTC](https://community.plotly.com/t/some-error-when-creating-treemap/42001 "2020-07-05T04:41:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_prasad26](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/b_prasad26/32/9837_2.png) [@b\_prasad26](https://community.plotly.com/u/b_prasad26)\
**Post date:** [July 5, 2020, 4:41am UTC](https://community.plotly.com/t/some-error-when-creating-treemap/42001/1 "2020-07-05T04:41:28Z")

</div>

Hi I am trying to create a treemap, the cell in jupyter notebook is executed without any errors but I couldn’t able to see the figure.

Sample dataframe -

> posts.head()
> 
> | | id | views | comments | category |
> | --- | --- | --- | --- | --- |
> | 0 | 5019 | 148896 | 28 | Artistic Visualization |
> | 1 | 1416 | 81374 | 26 | Visualization |
> | 2 | 1416 | 81374 | 26 | Featured |
> | 3 | 3485 | 80819 | 37 | Featured |
> | 4 | 3485 | 80819 | 37 | Mapping |

Treemap code used -

> import plotly.express as px  
> fig = px.treemap(data\_frame=posts,names =‘category’,values =‘views’,color =‘comments’)  
> fig.show()

I read the document of the [plotly express treemap](https://plotly.com/python-api-reference/generated/plotly.express.treemap.html) and it looks like all the arguments are rights to plot the graph but don’t know why is it not showing, I am just getting a blank space.

Can anyone help me with this.
