Skip to content

Commit 2e1d33c

Browse files
Revert "test_pivot_values_is_none"
This reverts commit fc39d86.
1 parent ce7cdb1 commit 2e1d33c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/reshape/test_pivot.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import numpy as np
1010
import pytest
1111

12+
from pandas._config import using_string_dtype
13+
1214
from pandas.compat.numpy import np_version_gte1p25
1315

1416
import pandas as pd
@@ -2699,9 +2701,12 @@ def test_pivot_index_is_none(self):
26992701
expected = DataFrame(3, index=[1], columns=Index([2], name="b"))
27002702
tm.assert_frame_equal(result, expected)
27012703

2704+
@pytest.mark.xfail(
2705+
using_string_dtype(), reason="TODO(infer_string) None is cast to NaN"
2706+
)
27022707
def test_pivot_values_is_none(self):
27032708
# GH#48293
2704-
df = DataFrame([[1, 2, 3]], columns=Index([None, "b", "c"], dtype="object"))
2709+
df = DataFrame({None: [1], "b": 2, "c": 3})
27052710

27062711
result = df.pivot(columns="b", index="c", values=None)
27072712
expected = DataFrame(

0 commit comments

Comments
 (0)