import pandas as pd import plotly.express as px df = pd.read_csv("define_stats.csv") df = df[df["category"] == "animal"] fig = px.sunburst(df, path=['category', 'value','file_name', ], values='count') fig.update_layout(margin=dict(t=0, b=0, l=0, r=0), title="물체") fig.update_traces(textinfo="label+percent parent+value", selector=dict(type='sunburst')) fig.show()