-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Add requirement for a 1-dimensional ndarray in the pd.qcut
docstring
#18211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18211 +/- ##
==========================================
+ Coverage 91.4% 91.4% +<.01%
==========================================
Files 163 163
Lines 50064 50064
==========================================
+ Hits 45760 45763 +3
+ Misses 4304 4301 -3
Continue to review full report at Codecov.
|
doc/source/whatsnew/v0.22.0.txt
Outdated
@@ -78,7 +78,7 @@ Performance Improvements | |||
Documentation Changes | |||
~~~~~~~~~~~~~~~~~~~~~ | |||
|
|||
- | |||
- Add requirement for 1-dimensional ndarrays in ``pd.qcut`` docstring (:issue:`18173`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
pandas/core/reshape/tile.py
Outdated
@@ -148,7 +148,7 @@ def qcut(x, q, labels=None, retbins=False, precision=3, duplicates='raise'): | |||
|
|||
Parameters | |||
---------- | |||
x : ndarray or Series | |||
x : ndarray (1-dimensional) or Series |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1d ndarray or Series
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
thanks @jdoepfert |
thx @jreback ! |
pandas-dev#18211) (cherry picked from commit a6345c7)
pd.qcut
only accepts 1-dimensional numpy arrays, which is not mentioned in the docstring. This PR updates the docstring accordingly.