-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
relplot
fails when when passed an empty DataFrame
and a style
argument on seaborn==0.13.2. The error is not present in seaborn==0.12.2, and broke my pipeline when upgrading.
Example:
import pandas as pd
import seaborn as sns
empty_df = pd.DataFrame(columns=["x", "y", "style"])
sns.relplot(empty_df, x="x", y="y", style="style")
Output:
TypeError: 'NoneType' object is not iterable
Environment:
python==3.11.12
numpy==2.3.2
pandas==2.3.2
seaborn==0.13.2
matplotlib==3.10.6
Reason for error:
The error occurs because a check for style_order
being None
is missing from:
Line 773 in 7001ebe
markers = {k: p._style_map(k, "marker") for k in style_order} |
Metadata
Metadata
Assignees
Labels
No labels