Skip to content

Commit fc39d86

Browse files
test_pivot_values_is_none
1 parent 2cad97c commit fc39d86

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/tests/reshape/test_pivot.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import numpy as np
1010
import pytest
1111

12-
from pandas._config import using_string_dtype
13-
1412
from pandas.compat.numpy import np_version_gte1p25
1513

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

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

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

0 commit comments

Comments
 (0)