Skip to content

Commit

Permalink
Merge branch 'main' into add_duckdb
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Aug 29, 2024
2 parents 1263795 + fe81978 commit 4ce1381
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
13 changes: 0 additions & 13 deletions hvplot/tests/plotting/testcore.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from packaging.version import Version
from unittest import SkipTest

import numpy as np
import pandas as pd
import hvplot.pandas # noqa
Expand Down Expand Up @@ -96,13 +93,3 @@ def test_series_polars(kind):
ser = pl.Series(values=np.random.rand(10), name='A')
assert isinstance(ser, pl.Series)
ser.hvplot(kind=kind)


@pytest.mark.skipif(skip_polar, reason='polars not installed')
@series_kinds
def test_series_polars_downstream(kind):
if Version(pl.__version__) < Version('0.20.3'):
raise SkipTest('plot namespace in Polars introduced in 0.20.3')
ser = pl.Series(values=np.random.rand(10), name='A')
assert isinstance(ser, pl.Series)
ser.plot(kind=kind)
12 changes: 0 additions & 12 deletions hvplot/tests/testplotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@

from unittest import TestCase

import holoviews as hv
import pandas as pd
import pytest

from parameterized import parameterized

from hvplot.converter import HoloViewsConverter
from hvplot.plotting import plot
from hvplot.tests.util import makeDataFrame

no_args = ['line', 'area', 'hist', 'box', 'kde', 'density', 'bar', 'barh']
x_y = ['scatter', 'hexbin']
Expand Down Expand Up @@ -56,14 +52,6 @@ def setUp(self):
pd.options.plotting.backend = 'hvplot'


def test_plot_supports_polars():
pl = pytest.importorskip('polars')
dfp = pl.DataFrame(makeDataFrame())
out = plot(dfp, 'line')
assert isinstance(out, hv.NdOverlay)
assert out.keys() == dfp.columns


def test_plot_supports_duckdb_relation():
duckdb = pytest.importorskip('duckdb')
connection = duckdb.connect(':memory:')
Expand Down

0 comments on commit 4ce1381

Please sign in to comment.