From e93c80923a43fc0be6eb77a80cd4d8abd3885d9e Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 13 Feb 2018 15:31:30 +0000 Subject: [PATCH] Prioritized dataframe interface in travis.yml --- .travis.yml | 2 +- holoviews/element/graphs.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 10b17a1827..26c34b014c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,7 +67,7 @@ before-script: script: - export HOLOVIEWSRC=`pwd`'/holoviews.rc' - - echo 'import holoviews as hv;hv.config(style_17=True);hv.config.warn_options_call=True' > holoviews.rc + - echo 'import holoviews as hv;hv.config(style_17=True);hv.Dataset.datatype = ['dataframe']+hv.Dataset.datatype;hv.config.warn_options_call=True' > holoviews.rc - nosetests --with-doctest --with-coverage --cover-package=holoviews -v - cd doc/nbpublisher; chmod +x test_notebooks.py; QT_QPA_PLATFORM='offscreen' BOKEH_DEV=True ./test_notebooks.py - chmod +x concat_html.py; ./concat_html.py ../test_data ../test_html diff --git a/holoviews/element/graphs.py b/holoviews/element/graphs.py index add2bda80d..1f9bcea6ba 100644 --- a/holoviews/element/graphs.py +++ b/holoviews/element/graphs.py @@ -60,8 +60,6 @@ def _process(self, element, key=None): source = element.dimension_values(0, expanded=False) target = element.dimension_values(1, expanded=False) nodes = np.unique(np.concatenate([source, target])) - if source.dtype.kind == 'i' and target.dtype.kind == 'i': - nodes = nodes.astype('int') if self.p.layout: import pandas as pd df = pd.DataFrame({'index': nodes})