Skip to content

Commit 52cf560

Browse files
committed
modified: pandas/tests/reshape/test_pivot.py
- Removed walrus operator declarations in parametrized marker for test :meth:TestPivotTable.test_pivot_table_values_as_two_params`. Appears related to this mypy issue -> python/mypy#17377.
1 parent 9ef0b72 commit 52cf560

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pandas/tests/reshape/test_pivot.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -2561,23 +2561,23 @@ def test_pivot_table_index_and_column_keys_with_nan(self, dropna):
25612561
"Category",
25622562
"Value",
25632563
[
2564-
[1.0, (nan := np.nan), 1.0, nan],
2565-
[nan, 1.0, nan, 1.0],
2564+
[1.0, np.nan, 1.0, np.nan],
2565+
[np.nan, 1.0, np.nan, 1.0],
25662566
],
2567-
(cat_index := Index(data=["A", "B"], name="Category")),
2568-
(val_index := Index(data=[10, 20, 40, 50], name="Value")),
2567+
Index(data=["A", "B"], name="Category"),
2568+
Index(data=[10, 20, 40, 50], name="Value"),
25692569
),
25702570
(
25712571
"Value",
25722572
"Category",
25732573
[
2574-
[1.0, nan],
2575-
[nan, 1.0],
2576-
[1.0, nan],
2577-
[nan, 1.0],
2574+
[1.0, np.nan],
2575+
[np.nan, 1.0],
2576+
[1.0, np.nan],
2577+
[np.nan, 1.0],
25782578
],
2579-
val_index,
2580-
cat_index,
2579+
Index(data=[10, 20, 40, 50], name="Value"),
2580+
Index(data=["A", "B"], name="Category"),
25812581
),
25822582
],
25832583
ids=["values-and-columns", "values-and-index"],

0 commit comments

Comments
 (0)