Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 1e00ecc

Browse files
committed
fix test
1 parent 7f0d28a commit 1e00ecc

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/system/small/operations/test_strings.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,10 @@ def test_isalpha(weird_strings, weird_strings_pd):
324324
)
325325

326326

327-
@pytest.mark.skipif(
328-
"dev" in pa.__version__,
329-
# b/333484335 pyarrow is inconsistent on the behavior
330-
reason="pyarrow dev version is inconsistent on isdigit behavior.",
331-
)
332327
def test_isdigit(weird_strings, weird_strings_pd):
333-
pd_result = weird_strings_pd.str.isdigit()
328+
# check the behavior against normal pandas str, since pyarrow has a bug with superscripts/fractions b/333484335
329+
# astype object instead of str to support pd.NA
330+
pd_result = weird_strings_pd.astype(object).str.isdigit()
334331
bf_result = weird_strings.str.isdigit().to_pandas()
335332

336333
pd.testing.assert_series_equal(

0 commit comments

Comments
 (0)