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

add downstream polars test #1243

Merged
merged 2 commits into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions hvplot/tests/plotting/testcore.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
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 @@ -87,3 +90,12 @@ 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)