<p dir="auto">Pairplot breaks when adding hue argument</p>
<p dir="auto">sns.pairplot(features_df, hue='size_box')  # error<br>
sns.pairplot(features_df)  # no error</p>
<p dir="auto">Why does adding hue throw an error? This seems a regression either in seaborn or a dependency as this was known good code that used to work. Re-running my notebook I see it breaks here.</p>
<p dir="auto">Thanks! :)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scipy/linalg/basic.py in inv(a, overwrite_a, check_finite)
    972         inv_a, info = getri(lu, piv, lwork=lwork, overwrite_lu=1)
    973     if info &gt; 0:
--&gt; 974         raise LinAlgError(&quot;singular matrix&quot;)
    975     if info &lt; 0:
    976         raise ValueError('illegal value in %d-th argument of internal '

LinAlgError: singular matrix"><pre class="notranslate"><code class="notranslate">scipy/linalg/basic.py in inv(a, overwrite_a, check_finite)
    972         inv_a, info = getri(lu, piv, lwork=lwork, overwrite_lu=1)
    973     if info &gt; 0:
--&gt; 974         raise LinAlgError("singular matrix")
    975     if info &lt; 0:
    976         raise ValueError('illegal value in %d-th argument of internal '

LinAlgError: singular matrix
</code></pre></div>
<p dir="auto"><a href="https://seaborn.pydata.org/examples/scatter_bubbles.html" rel="nofollow">https://seaborn.pydata.org/examples/scatter_bubbles.html</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sns
sns.set_theme(style=&quot;white&quot;)

mpg = sns.load_dataset(&quot;mpg&quot;)

sns.relplot(x=&quot;horsepower&quot;, y=&quot;mpg&quot;, hue=&quot;origin&quot;, size=&quot;weight&quot;,
            sizes=(40, 400), alpha=.5, palette=&quot;muted&quot;,
            height=6, data=mpg)"><pre class="notranslate"><code class="notranslate">import seaborn as sns
sns.set_theme(style="white")

mpg = sns.load_dataset("mpg")

sns.relplot(x="horsepower", y="mpg", hue="origin", size="weight",
            sizes=(40, 400), alpha=.5, palette="muted",
            height=6, data=mpg)
</code></pre></div>
<p dir="auto">In the version 0.10.0, I could assign size=1, in the sns.relplot(), there is no error.<br>
In the version 0.10.1, I will gain an error "TypeError: object of type 'int' has no len()".<br>
I must assign size be  "size=[1] * len(mpg)".</p>