Skip to content

Commit 892a1a2

Browse files
committed
modified: pandas/tests/reshape/test_pivot.py
- Renamed `actual` -> `result` per comment feedback.
1 parent b26a907 commit 892a1a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/reshape/test_pivot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ def test_pivot_table_aggfunc_nunique_with_different_values(self):
25322532
def test_pivot_table_index_and_column_keys_with_nan(self, dropna: bool) -> None:
25332533
data = {"row": [None, *range(4)], "col": [*range(4), None], "val": range(5)}
25342534
df = DataFrame(data)
2535-
actual = df.pivot_table(values="val", index="row", columns="col", dropna=dropna)
2535+
result = df.pivot_table(values="val", index="row", columns="col", dropna=dropna)
25362536
e_index = [None, *range(4)]
25372537
e_columns = [*range(4), None]
25382538
e_data = np.zeros(shape=(5, 5))
@@ -2553,7 +2553,7 @@ def test_pivot_table_index_and_column_keys_with_nan(self, dropna: bool) -> None:
25532553
.dropna(axis="columns", how="all")
25542554
)
25552555

2556-
tm.assert_frame_equal(left=actual, right=expected)
2556+
tm.assert_frame_equal(left=result, right=expected)
25572557

25582558

25592559
class TestPivot:

0 commit comments

Comments
 (0)