Skip to content

Commit 1f25150

Browse files
pre-commit changes
1 parent ebdba9c commit 1f25150

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/reshape/test_pivot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,15 +2376,15 @@ def test_pivot_table_with_margins_and_numeric_columns(self):
23762376

23772377
tm.assert_frame_equal(result, expected)
23782378

2379-
@pytest.mark.parametrize("dtype",['Int64','int64'])
2380-
def test_pivot_ea_dtype_dropna(self, dropna,dtype):
2379+
@pytest.mark.parametrize("dtype", ["Int64", "int64"])
2380+
def test_pivot_ea_dtype_dropna(self, dropna, dtype):
23812381
# GH#47477
23822382
# GH#47971
23832383
df = DataFrame({"x": "a", "y": "b", "age": Series([20, 40], dtype=dtype)})
23842384
result = df.pivot_table(
23852385
index="x", columns="y", values="age", aggfunc="mean", dropna=dropna
23862386
)
2387-
expected_dtype = "float64" if dtype=="int64" else "Float64"
2387+
expected_dtype = "float64" if dtype == "int64" else "Float64"
23882388
expected = DataFrame(
23892389
[[30]],
23902390
index=Index(["a"], name="x"),

0 commit comments

Comments
 (0)