Skip to content

Commit 2ae4921

Browse files
committed
modified: pandas/tests/reshape/test_pivot_multilevel.py
- Removed walrus operator declarations as I'm sure mypy would raise an issue with it given that it did in test_pivot.py (see commit 52cf560).
1 parent 52cf560 commit 2ae4921

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/tests/reshape/test_pivot_multilevel.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ def test_pivot_df_multiindex_index_none():
259259
"index",
260260
["col", "value"],
261261
[
262-
[50.0, (nan := np.nan), 100.0, nan],
263-
[nan, 100.0, nan, 200.0],
262+
[50.0, np.nan, 100.0, np.nan],
263+
[np.nan, 100.0, np.nan, 200.0],
264264
],
265265
Index(data=["A", "B"], name="index"),
266266
MultiIndex.from_arrays(
@@ -271,10 +271,10 @@ def test_pivot_df_multiindex_index_none():
271271
["index", "value"],
272272
"col",
273273
[
274-
[50.0, nan],
275-
[nan, 100.0],
276-
[100.0, nan],
277-
[nan, 200.0],
274+
[50.0, np.nan],
275+
[np.nan, 100.0],
276+
[100.0, np.nan],
277+
[np.nan, 200.0],
278278
],
279279
MultiIndex.from_arrays(
280280
arrays=[["A", "A", "B", "B"], [50, 100, 100, 200]],

0 commit comments

Comments
 (0)