Skip to content

Treemap: plotly express turns blank - see reproducible example #3237

@firmai

Description

@firmai

Hi - please see the fast fully contained colab example
https://colab.research.google.com/drive/1lzaw1AmYeJtrcPBxcPCZPyeiACvv4U1C?usp=sharing

input:

%%capture
!pip install --upgrade plotly
import pandas as pd 
final = pd.read_csv("https://raw.githubusercontent.com/firmai/random-assets-two/master/test/file.csv")
final.head()
final.dtypes
import plotly.express as px
import numpy as np

typed = "In-sample"
fig = px.treemap(final, path=["Data","Acronym"], values=typed)

fig.show()

output:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions