Skip to content
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

Added dask data interface #974

Merged
merged 8 commits into from Nov 16, 2016

Removed datashader path

  • Loading branch information...
Philipp Rudiger Philipp Rudiger
Philipp Rudiger authored and Philipp Rudiger committed Nov 9, 2016
commit da7f4a25c8ac7099de988f34ef3810484579823c
@@ -134,11 +134,7 @@ def get_agg_data(cls, obj, category=None):
vdims = obj.vdims
x, y = obj.dimensions(label=True)[:2]
is_df = lambda x: isinstance(x, Dataset) and x.interface in DF_INTERFACES
if isinstance(obj, Dataset):
df = obj.data if is_df(obj) else obj.dframe()
paths.append(df)
glyph = 'line' if (pd.isnull(df[x]) & pd.isnull(df[y])).any() else 'points'
elif isinstance(obj, Path):
if isinstance(obj, Path):
glyph = 'line'
for p in obj.data:
df = pd.DataFrame(p, columns=obj.dimensions('key', True))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.