Skip to content

Commit 5cf0e93

Browse files
committed
Move reproducible example to test folder to fix build
1 parent 3b5549b commit 5cf0e93

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# reproduce_bug.py
2+
import pandas as pd
3+
import plotly.express as px
4+
5+
# Step 1: Load the dataset
6+
plot_data = pd.read_csv("example_plot_data.csv")
7+
8+
# Step 2: Convert the date column
9+
plot_data["savedate_week"] = pd.to_datetime(plot_data["savedate_week"])
10+
11+
# Step 3: Create stacked bar plot
12+
fig = px.bar(
13+
plot_data, x="savedate_week", y="commander_perc_of_card", color="commanders"
14+
)
15+
16+
# Step 4: Show the figure
17+
fig.show()

0 commit comments

Comments
 (0)