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
There is a bug when using Lux with this example from Datashader.
importpandasaspdimportnumpyasnpfromcollectionsimportOrderedDictasodictnum=10000np.random.seed(1)
dists= {cat: pd.DataFrame(odict([('x',np.random.normal(x,s,num)),
('y',np.random.normal(y,s,num)),
('val',val),
('cat',cat)]))
forx, y, s, val, catin
[( 2, 2, 0.03, 10, "d1"),
( 2, -2, 0.10, 20, "d2"),
( -2, -2, 0.50, 30, "d3"),
( -2, 2, 1.00, 40, "d4"),
( 0, 0, 3.00, 50, "d5")] }
df=pd.concat(dists,ignore_index=True)
df["cat"]=df["cat"].astype("category") # If commented, the df.intent=vis line doesn't breakdf#Select and export the scatterplot vis (big circular blob)vis=df.exported[0]
df.intent=visdf# This errors on the key 'cat' which is a categorical
We should look into supporting Categorical data types in Pandas. More importantly, we should look into whether bugs show up when we perform astype operations for other data types.
The text was updated successfully, but these errors were encountered:
There is a bug when using Lux with this example from Datashader.
We should look into supporting Categorical data types in Pandas. More importantly, we should look into whether bugs show up when we perform
astype
operations for other data types.The text was updated successfully, but these errors were encountered: