Skip to content

Commit bf78175

Browse files
committed
Rebase
1 parent 0b4d47c commit bf78175

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

pandas/tests/indexes/test_base.py

-24
Original file line numberDiff line numberDiff line change
@@ -2233,30 +2233,6 @@ def test_groupby(self):
22332233

22342234
tm.assert_dict_equal(result, expected)
22352235

2236-
def test_groupby_nan_index_value(self):
2237-
df = pd.DataFrame([["x", np.nan, 1]], columns=["A", "B", "C"]).set_index(
2238-
["A", "B"]
2239-
)
2240-
result = df.groupby(level=["A", "B"]).C.sum()
2241-
result = np.asarray(result)
2242-
2243-
s = Series([])
2244-
s.name = "C"
2245-
expected = s.astype("int64")
2246-
expected = np.asarray(expected)
2247-
tm.assert_numpy_array_equal(result, expected)
2248-
2249-
df = pd.DataFrame(
2250-
[["x", np.nan, 1, 2], [None, "y", 3, 4]], columns=["A", "B", "C", "D"]
2251-
).set_index(["A", "B", "C"])
2252-
result = df.groupby(level=["A", "B"]).D.sum()
2253-
s = Series([])
2254-
s.name = "D"
2255-
expected = s.astype("int64")
2256-
result = np.asarray(result)
2257-
expected = np.asarray(expected)
2258-
tm.assert_numpy_array_equal(result, expected)
2259-
22602236
@pytest.mark.parametrize(
22612237
"mi,expected",
22622238
[

0 commit comments

Comments
 (0)