Skip to content

Commit 029edd0

Browse files
committed
PR in comment
1 parent 0864317 commit 029edd0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pandas/tests/groupby/test_grouping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
""" test where we are determining what we are grouping, or getting groups """
2-
32
import numpy as np
43
import pytest
54

@@ -11,9 +10,9 @@
1110
MultiIndex,
1211
Series,
1312
Timestamp,
13+
_testing as tm,
1414
date_range,
1515
)
16-
import pandas._testing as tm
1716
from pandas.core.groupby.grouper import Grouping
1817

1918
# selection
@@ -704,6 +703,7 @@ def test_groupby_multiindex_level_empty(self):
704703
tm.assert_frame_equal(result, expected)
705704

706705
def test_default_observed_deprecated(self):
706+
# pr-35967
707707
df = DataFrame([["A", 1, 1], ["A", 2, 1], ["B", 1, 1]], columns=["x", "y", "z"])
708708
df.x = df.x.astype("category")
709709
df.y = df.x.astype("category")

pandas/tests/reshape/test_pivot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,7 @@ def agg(arr):
20732073
foo.pivot_table("notpresent", "X", "Y", aggfunc=agg)
20742074

20752075
def test_pivot_table_observed_deprecated_default(self):
2076+
# pr-35967
20762077
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
20772078
# make sure we actually have a category to warn on
20782079
self.data.A = self.data.A.astype("category")

0 commit comments

Comments
 (0)