Skip to content

Commit

Permalink
chore: support seaborn >=0.13 (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelak-dtml authored Jan 10, 2024
1 parent 9a759ba commit 29cb1fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,12 @@ def show_boxplots_over_time(
if not is_numeric(df[column]):
raise ValueError(f"Cannot plot boxplot for non-numeric column `{column}`")
display(Markdown(f"---\n### {column}"))
x = df.index.to_series().apply(grouping_function)
ax = sns.boxplot(
x=df.index.to_series().apply(grouping_function),
x=x,
y=df[column],
color=color,
hue=x,
)

ax.set_xticklabels(ax.get_xticklabels(), rotation=45)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pandas = [
]
numpy = "*"
matplotlib = "^3.3"
seaborn = "^0.12"
seaborn = "^0.13"
plotly = ">=4.0.0, <6"
statsmodels = ">0.10.2"
nbformat = "*"
Expand Down

0 comments on commit 29cb1fd

Please sign in to comment.