-
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
PairGrid and missing values? #407
Comments
Workarounds for histogram/scatter.
Though it looks like I'm missing some things with these. E.g., xaxis labels and ticks. |
this still does not work. Am I missing how dropna works? > from matplotlib import pyplot as plt
> import numpy as np
> import pandas as pd
> import seaborn as sns
> sns.__version__
'0.7.dev'
generate an example DataFrame
> a = pd.DataFrame(data={
'a': np.random.normal(size=(100,)),
'b': np.random.lognormal(size=(100,)),
'c': np.random.exponential(size=(100,))})
> sns.pairplot(a) # this works as expected
(...)
> b = a.copy()
> b.iloc[5,2] = np.nan # replace one value in col 'c' by a NaN
> sns.pairplot(b) # this fails with error
# "AttributeError: max must be larger than min in range parameter."
# in histogram(a, bins, range, normed, weights, density)"
> sns.pairplot(b, dropna=True) # same error as above |
Any news on this or where it's going? 0.7.0 still has the same behaviour. |
Is any progress on the problem? |
In fact, the sns.pairplot(b.dropna()) |
The problem with using |
I agree. Or it might even be useful to specify the dropping strategy with the argument |
Should the dropna argument work for this and do pairwise dropping?
The text was updated successfully, but these errors were encountered: