윤영준 윤영준 2023-08-09
added missing files
@97403facc597f0df25653d0f99a5078124267274
 
main.py (added)
+++ main.py
@@ -0,0 +1,12 @@
+import pandas as pd
+import plotly.express as px
+
+# Convert hierarchical data into DataFrame
+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()(파일 끝에 줄바꿈 문자 없음)
Add a comment
List