-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LinAlgError: singular matrix #1502
Comments
Can't help without a reproducible example, sorry. |
Hi, this is a (simplified) case I encountered while working on data: data.1000.txt singular.py: import pandas
import seaborn
data = pandas.read_table("data.1000.txt", index_col="cell")
seaborn.pairplot(data.drop(columns="cluster").iloc[:,0:6], hue="batch") commands:
|
Hello, I encountered the same situation, do you know how can I make it work without removing the hue parameter? |
My guess is that it's getting raised when trying to do a KDE on a single observation. You could use a histogram on the diagonal, instead of a kde, which will probably be more robust. |
Now it works! Thank you very much mwaskom 😄 |
I have the same error |
Having the same problem, had to install conda to get it to work without getting the linalg error. I'm on a mac too |
Im having this issue with kdeplot too |
I think the |
Similar issue but only when using Python 3, Python 2 with same data works fine. |
Same problem. Another easy working example is using the "Eighth-Grade Pupils in the Netherlands" data set as follows.
However, it does work if you remove the COMB column from the data to be plotted. |
Fixed in #1823 |
'LinAlgError: singular matrix' error pops up when trying to call the pairplot() function.
The text was updated successfully, but these errors were encountered: