You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
Maybe a bit niche, but ran into this issue with lineplot: if there is a column of all np.nan, then it is ignored, but if there is a column of all None, then it makes the plot really wacky.
Generate some data:
importpandasaspdimportnumpyasnpimportpdvega%matplotlibinline# generate some datanp.random.seed(111)
df=pd.DataFrame(np.random.randn(50, 4),
index=pd.date_range('1/1/2000', periods=50),
columns=list('ABCD'))
df=df.cumsum()
# this plot is finedf.vgplot()
# this column is ignored in the plotdf['nan'] =np.nandf.vgplot()
(looks the same as above)
# this column makes everything weirddf['none'] =Nonedf.vgplot()
Oddly enough this doesn't happen if the A and B columns are int:
np.random.seed(111)
df=pd.DataFrame(np.random.randint(low=0, high=5, size=[50, 2]),
index=pd.date_range('1/1/2000', periods=50),
columns=list('AB'))
df=df.cumsum()
# add a column of all nonedf['nan'] =np.nan# add a column of all nonedf['none'] =Nonedf.vgplot()
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Maybe a bit niche, but ran into this issue with lineplot: if there is a column of all
np.nan
, then it is ignored, but if there is a column of allNone
, then it makes the plot really wacky.Generate some data:
(looks the same as above)
Oddly enough this doesn't happen if the A and B columns are int:
The text was updated successfully, but these errors were encountered: