Skip to content

Commit 6e071f6

Browse files
committed
TST: Set xfail to sparse quantile/where tests
1 parent dcb680e commit 6e071f6

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

pandas/tests/sparse/test_frame.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,8 @@ def test_numpy_func_call(self):
13861386
for func in funcs:
13871387
getattr(np, func)(self.frame)
13881388

1389+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1390+
'(GH 17386)')
13891391
def test_where_with_int_data(self):
13901392
# GH 17386
13911393
data = [[1, 1], [2, 2], [3, 3], [4, 4], [0, 0]]
@@ -1401,6 +1403,8 @@ def test_where_with_int_data(self):
14011403
tm.assert_frame_equal(result, dense_expected)
14021404
tm.assert_sp_frame_equal(result, sparse_expected)
14031405

1406+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1407+
'(GH 17386)')
14041408
def test_where_with_int_data_and_int_other(self):
14051409
# GH 17386
14061410
data = [[1, 1], [2, 2], [3, 3], [4, 4], [0, 0]]
@@ -1418,6 +1422,8 @@ def test_where_with_int_data_and_int_other(self):
14181422
tm.assert_frame_equal(result, dense_expected)
14191423
tm.assert_sp_frame_equal(result, sparse_expected)
14201424

1425+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1426+
'(GH 17386)')
14211427
def test_where_with_int_data_and_float_other(self):
14221428
# GH 17386
14231429
data = [[1, 1], [2, 2], [3, 3], [4, 4], [0, 0]]
@@ -1435,6 +1441,8 @@ def test_where_with_int_data_and_float_other(self):
14351441
tm.assert_frame_equal(result, dense_expected)
14361442
tm.assert_sp_frame_equal(result, sparse_expected)
14371443

1444+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1445+
'(GH 17386)')
14381446
def test_where_with_int_data_and_complex_other(self):
14391447
# GH 17386
14401448
data = [[1, 1], [2, 2], [3, 3], [4, 4], [0, 0]]
@@ -1452,6 +1460,8 @@ def test_where_with_int_data_and_complex_other(self):
14521460
tm.assert_frame_equal(result, dense_expected)
14531461
tm.assert_sp_frame_equal(result, sparse_expected)
14541462

1463+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1464+
'(GH 17386)')
14551465
def test_where_with_int_data_and_bool_other(self):
14561466
# GH 17386
14571467
data = [[1, 1], [2, 2], [3, 3], [4, 4], [0, 0]]
@@ -1469,6 +1479,8 @@ def test_where_with_int_data_and_bool_other(self):
14691479
tm.assert_frame_equal(result, dense_expected)
14701480
tm.assert_sp_frame_equal(result, sparse_expected)
14711481

1482+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1483+
'(GH 17386)')
14721484
def test_where_with_float_data(self):
14731485
# GH 17386
14741486
data = [[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0], [nan, nan]]
@@ -1484,6 +1496,8 @@ def test_where_with_float_data(self):
14841496
tm.assert_frame_equal(result, dense_expected)
14851497
tm.assert_sp_frame_equal(result, sparse_expected)
14861498

1499+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1500+
'(GH 17386)')
14871501
def test_where_with_float_data_and_int_other(self):
14881502
# GH 17386
14891503
data = [[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0], [nan, nan]]
@@ -1501,6 +1515,8 @@ def test_where_with_float_data_and_int_other(self):
15011515
tm.assert_frame_equal(result, dense_expected)
15021516
tm.assert_sp_frame_equal(result, sparse_expected)
15031517

1518+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1519+
'(GH 17386)')
15041520
def test_where_with_float_data_and_float_other(self):
15051521
# GH 17386
15061522
data = [[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0], [nan, nan]]
@@ -1518,6 +1534,8 @@ def test_where_with_float_data_and_float_other(self):
15181534
tm.assert_frame_equal(result, dense_expected)
15191535
tm.assert_sp_frame_equal(result, sparse_expected)
15201536

1537+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1538+
'(GH 17386)')
15211539
def test_where_with_float_data_and_complex_other(self):
15221540
# GH 17386
15231541
data = [[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0], [nan, nan]]
@@ -1535,6 +1553,8 @@ def test_where_with_float_data_and_complex_other(self):
15351553
tm.assert_frame_equal(result, dense_expected)
15361554
tm.assert_sp_frame_equal(result, sparse_expected)
15371555

1556+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1557+
'(GH 17386)')
15381558
def test_where_with_float_data_and_bool_other(self):
15391559
# GH 17386
15401560
data = [[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0], [nan, nan]]
@@ -1552,6 +1572,8 @@ def test_where_with_float_data_and_bool_other(self):
15521572
tm.assert_frame_equal(result, dense_expected)
15531573
tm.assert_sp_frame_equal(result, sparse_expected)
15541574

1575+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1576+
'(GH 17386)')
15551577
def test_where_with_complex_data(self):
15561578
# GH 17386
15571579
data = [[1.0, 1.0 + 1.0j],
@@ -1571,6 +1593,8 @@ def test_where_with_complex_data(self):
15711593
tm.assert_frame_equal(result, dense_expected)
15721594
tm.assert_sp_frame_equal(result, sparse_expected)
15731595

1596+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1597+
'(GH 17386)')
15741598
def test_where_with_complex_data_and_int_other(self):
15751599
# GH 17386
15761600
data = [[1.0, 1.0 + 1.0j],
@@ -1592,6 +1616,8 @@ def test_where_with_complex_data_and_int_other(self):
15921616
tm.assert_frame_equal(result, dense_expected)
15931617
tm.assert_sp_frame_equal(result, sparse_expected)
15941618

1619+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1620+
'(GH 17386)')
15951621
def test_where_with_complex_data_and_float_other(self):
15961622
# GH 17386
15971623
data = [[1.0, 1.0 + 1.0j],
@@ -1613,6 +1639,8 @@ def test_where_with_complex_data_and_float_other(self):
16131639
tm.assert_frame_equal(result, dense_expected)
16141640
tm.assert_sp_frame_equal(result, sparse_expected)
16151641

1642+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1643+
'(GH 17386)')
16161644
def test_where_with_complex_data_and_complex_other(self):
16171645
# GH 17386
16181646
data = [[1.0, 1.0 + 1.0j],
@@ -1634,6 +1662,8 @@ def test_where_with_complex_data_and_complex_other(self):
16341662
tm.assert_frame_equal(result, dense_expected)
16351663
tm.assert_sp_frame_equal(result, sparse_expected)
16361664

1665+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1666+
'(GH 17386)')
16371667
def test_where_with_complex_data_and_bool_other(self):
16381668
# GH 17386
16391669
data = [[1.0, 1.0 + 1.0j],
@@ -1655,6 +1685,8 @@ def test_where_with_complex_data_and_bool_other(self):
16551685
tm.assert_frame_equal(result, dense_expected)
16561686
tm.assert_sp_frame_equal(result, sparse_expected)
16571687

1688+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1689+
'(GH 17386)')
16581690
def test_where_with_bool_data(self):
16591691
# GH 17386
16601692
data = [[False, False], [True, True], [False, False]]
@@ -1670,6 +1702,8 @@ def test_where_with_bool_data(self):
16701702
tm.assert_frame_equal(result, dense_expected)
16711703
tm.assert_sp_frame_equal(result, sparse_expected)
16721704

1705+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1706+
'(GH 17386)')
16731707
def test_where_with_bool_data_and_bool_other(self):
16741708
# GH 17386
16751709
data = [[False, False], [True, True], [False, False]]
@@ -1687,6 +1721,8 @@ def test_where_with_bool_data_and_bool_other(self):
16871721
tm.assert_frame_equal(result, dense_expected)
16881722
tm.assert_sp_frame_equal(result, sparse_expected)
16891723

1724+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1725+
'(GH 17386)')
16901726
def test_where_with_bool_data_and_complex_other(self):
16911727
# GH 17386
16921728
data = [[False, False], [True, True], [False, False]]
@@ -1704,6 +1740,8 @@ def test_where_with_bool_data_and_complex_other(self):
17041740
tm.assert_frame_equal(result, dense_expected)
17051741
tm.assert_sp_frame_equal(result, sparse_expected)
17061742

1743+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1744+
'(GH 17386)')
17071745
def test_quantile(self):
17081746
# GH 17386
17091747
data = [[1, 1], [2, 10], [3, 100], [nan, nan]]
@@ -1719,6 +1757,8 @@ def test_quantile(self):
17191757
tm.assert_series_equal(result, dense_expected)
17201758
tm.assert_sp_series_equal(result, sparse_expected)
17211759

1760+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1761+
'(GH 17386)')
17221762
def test_quantile_multi(self):
17231763
# GH 17386
17241764
data = [[1, 1], [2, 10], [3, 100], [nan, nan]]

pandas/tests/sparse/test_series.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,8 @@ def test_numpy_func_call(self):
13841384
for series in ('bseries', 'zbseries'):
13851385
getattr(np, func)(getattr(self, series))
13861386

1387+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1388+
'(GH 17386)')
13871389
def test_where_with_int_data(self):
13881390
# GH 17386
13891391
data = [1, 1, 2, 2, 3, 3, 4, 4, 0, 0]
@@ -1447,6 +1449,8 @@ def test_where_with_int_data_and_complex_other(self):
14471449
tm.assert_series_equal(result, dense_expected)
14481450
tm.assert_sp_series_equal(result, sparse_expected)
14491451

1452+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1453+
'(GH 17386)')
14501454
def test_where_with_int_data_and_bool_other(self):
14511455
# GH 17386
14521456
data = [1, 1, 2, 2, 3, 3, 4, 4, 0, 0]
@@ -1463,6 +1467,8 @@ def test_where_with_int_data_and_bool_other(self):
14631467
tm.assert_series_equal(result, dense_expected)
14641468
tm.assert_sp_series_equal(result, sparse_expected)
14651469

1470+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1471+
'(GH 17386)')
14661472
def test_where_with_float_data(self):
14671473
# GH 17386
14681474
data = [1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0, nan, nan]
@@ -1478,6 +1484,8 @@ def test_where_with_float_data(self):
14781484
tm.assert_series_equal(result, dense_expected)
14791485
tm.assert_sp_series_equal(result, sparse_expected)
14801486

1487+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1488+
'(GH 17386)')
14811489
def test_where_with_float_data_and_int_other(self):
14821490
# GH 17386
14831491
data = [1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0, nan, nan]
@@ -1526,6 +1534,8 @@ def test_where_with_float_data_and_complex_other(self):
15261534
tm.assert_series_equal(result, dense_expected)
15271535
tm.assert_sp_series_equal(result, sparse_expected)
15281536

1537+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1538+
'(GH 17386)')
15291539
def test_where_with_float_data_and_bool_other(self):
15301540
# GH 17386
15311541
data = [1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0, nan, nan]
@@ -1542,6 +1552,8 @@ def test_where_with_float_data_and_bool_other(self):
15421552
tm.assert_series_equal(result, dense_expected)
15431553
tm.assert_sp_series_equal(result, sparse_expected)
15441554

1555+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1556+
'(GH 17386)')
15451557
def test_where_with_complex_data(self):
15461558
# GH 17386
15471559
data = [1.0, 1.0 + 1.0j,
@@ -1561,6 +1573,8 @@ def test_where_with_complex_data(self):
15611573
tm.assert_series_equal(result, dense_expected)
15621574
tm.assert_sp_series_equal(result, sparse_expected)
15631575

1576+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1577+
'(GH 17386)')
15641578
def test_where_with_complex_data_and_int_other(self):
15651579
# GH 17386
15661580
data = [1.0, 1.0 + 1.0j,
@@ -1621,6 +1635,8 @@ def test_where_with_complex_data_and_complex_other(self):
16211635
tm.assert_series_equal(result, dense_expected)
16221636
tm.assert_sp_series_equal(result, sparse_expected)
16231637

1638+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1639+
'(GH 17386)')
16241640
def test_where_with_complex_data_and_bool_other(self):
16251641
# GH 17386
16261642
data = [1.0, 1.0 + 1.0j,
@@ -1641,6 +1657,8 @@ def test_where_with_complex_data_and_bool_other(self):
16411657
tm.assert_series_equal(result, dense_expected)
16421658
tm.assert_sp_series_equal(result, sparse_expected)
16431659

1660+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1661+
'(GH 17386)')
16441662
def test_where_with_bool_data(self):
16451663
# GH 17386
16461664
data = [False, False, True, True, False, False]
@@ -1656,6 +1674,8 @@ def test_where_with_bool_data(self):
16561674
tm.assert_series_equal(result, dense_expected)
16571675
tm.assert_sp_series_equal(result, sparse_expected)
16581676

1677+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1678+
'(GH 17386)')
16591679
def test_where_with_bool_data_and_bool_other(self):
16601680
# GH 17386
16611681
data = [False, False, True, True, False, False]
@@ -1672,6 +1692,8 @@ def test_where_with_bool_data_and_bool_other(self):
16721692
tm.assert_series_equal(result, dense_expected)
16731693
tm.assert_sp_series_equal(result, sparse_expected)
16741694

1695+
@pytest.mark.xfail(reason='Wrong SparseBlock initialization '
1696+
'(GH 17386)')
16751697
def test_where_with_bool_data_and_complex_other(self):
16761698
# GH 17386
16771699
data = [False, False, True, True, False, False]

0 commit comments

Comments
 (0)