import seaborn as sns
import pandas as pd
url = "https://docs.google.com/spreadsheets/d/e/2PACX-1vSTN7WS3vxKc4ty4YKABKazHpwR48ETsCvyL1a94TE1md5kqcLCW9eMlyqnTAK-fYYkqX15KVUwCqAJ/pub?output=csv"
df = pd.read_csv(url)
import plotly.express as px
import plotly.graph_objects as go
from datetime import datetime
import calendar
fig = px.box(df, y="# of customers", x="Week 1", points="all", notched=True)
fig.update_traces(quartilemethod="linear", boxpoints= "outliers")
fig.update_layout(
xaxis=dict(
rangeselector=dict(
buttons=list([
dict(count=1,
label="1d",
step="day",
stepmode="backward"),
dict(count=7,
label="1 week",
step="day",
stepmode="backward"),
dict(count=7,
label="2 week",
step="day",
stepmode="backward"),
])
),
rangeslider=dict(
visible=True
),
)
)
Hi,
Welcome to the community!
I think the reason why this is happening is because you donβt have timestamps in the xaxis, just a categorical variable.
1 Like
Thank you so much, I appreciate it.