Skip to content

Commit

Permalink
Use importorskip
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Oct 22, 2023
1 parent 37e25e7 commit fa9e93b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pandas/tests/groupby/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pytest

from pandas.compat import pa_version_under7p0
from pandas.errors import (
PerformanceWarning,
SpecificationError,
Expand Down Expand Up @@ -2542,14 +2541,13 @@ def test_groupby_column_index_name_lost(func):
"infer_string",
[
False,
pytest.param(
True,
marks=pytest.mark.skipif(pa_version_under7p0, reason="arrow not installed"),
),
True,
],
)
def test_groupby_duplicate_columns(infer_string):
# GH: 31735
if infer_string:
pytest.importorskip("pyarrow")
df = DataFrame(
{"A": ["f", "e", "g", "h"], "B": ["a", "b", "c", "d"], "C": [1, 2, 3, 4]}
).astype(object)
Expand Down

0 comments on commit fa9e93b

Please sign in to comment.