Skip to content

Commit 4fd6088

Browse files
committed
fixed linting issues and pre-commit.ci autofix
1 parent ebc1b68 commit 4fd6088

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Other enhancements
232232
- Support reading Stata 102-format (Stata 1) dta files (:issue:`58978`)
233233
- Support reading Stata 110-format (Stata 7) dta files (:issue:`47176`)
234234
- Switched wheel upload to **PyPI Trusted Publishing** (OIDC) for release-tag pushes in ``wheels.yml``. (:issue:`61718`)
235-
- :func:`qcut` now accepts ``right`` as optional arguments, as in :meth:`cut` (:issue:`62938`)
235+
- :func:`qcut` now accepts the ``right`` parameter, consistent with :func:`cut` (:issue:`63053`)
236236

237237
.. ---------------------------------------------------------------------------
238238
.. _whatsnew_300.notable_bug_fixes:

pandas/tests/reshape/test_qcut.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ def test_qcut():
4747
def test_qcut_right():
4848
arr = np.random.default_rng(2).standard_normal(1000)
4949

50-
# We store the bins as Index that have been
51-
# rounded to comparisons are a bit tricky.
5250
labels, _ = qcut(arr, 4, retbins=True, right=True)
5351
ex_bins = np.quantile(arr, [0, 0.25, 0.5, 0.75, 1.0])
5452

@@ -60,8 +58,8 @@ def test_qcut_right():
6058

6159
ex_levels = cut(arr, ex_bins, include_lowest=True, right=True)
6260
tm.assert_categorical_equal(labels, ex_levels)
63-
64-
61+
62+
6563
def test_qcut_no_right():
6664
arr = np.random.default_rng(2).standard_normal(1000)
6765

@@ -76,7 +74,7 @@ def test_qcut_no_right():
7674

7775
ex_levels = cut(arr, ex_bins, include_lowest=True, right=False)
7876
tm.assert_categorical_equal(labels, ex_levels)
79-
77+
8078

8179
def test_qcut_bounds():
8280
arr = np.random.default_rng(2).standard_normal(1000)

0 commit comments

Comments
 (0)