Skip to content

Commit 4855f06

Browse files
committed
Fixes from pre-commit [automated commit]
1 parent 29fddab commit 4855f06

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

pandas/tests/reshape/test_qcut.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,22 +301,17 @@ def test_qcut_nullable_integer(q, any_nullable_int_dtype):
301301
expected = qcut(arr.astype(float), q)
302302

303303
tm.assert_categorical_equal(result, expected)
304-
304+
305305

306306
@pytest.mark.parametrize(
307307
"Data_type,Data_type_string",
308-
[
309-
(pd.Float64Dtype(),"Float64Dtype"),
310-
(pd.Int64Dtype(),"Int64Dtype")
311-
]
308+
[(pd.Float64Dtype(), "Float64Dtype"), (pd.Int64Dtype(), "Int64Dtype")],
312309
)
313-
def test_qcut_numeric_dtype(Data_type,Data_type_string):
310+
def test_qcut_numeric_dtype(Data_type, Data_type_string):
314311
series = pd.Series([1.0, 2.0, 3.0, 4.0], dtype=Data_type)
315312

316313
try:
317-
pd.qcut(series,2)
314+
pd.qcut(series, 2)
318315
except:
319316
Fail_string = Data_type_string + " is not supported"
320-
pytest.fail( msg = Fail_string )
321-
322-
317+
pytest.fail(msg=Fail_string)

0 commit comments

Comments
 (0)