-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Changed kind parameter from integer to int, Added example #32361
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
Changed kind parameter from integer to int, Added example #32361
Conversation
pandas/core/arrays/sparse/array.py
Outdated
@@ -231,7 +231,7 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin): | |||
3. ``data.dtype.fill_value`` if `fill_value` is None and `dtype` | |||
is not a ``SparseDtype`` and `data` is a ``SparseArray``. | |||
|
|||
kind : {'integer', 'block'}, default 'integer' | |||
kind : {'int', 'block'}, default 'int' |
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.
Please revert this line
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.
Hey, thanks for the reply :)
After reverting the line, an error pops up on the validate_doctring.py test, is that ok?
@MomIsBestFriend
################################################################################
################################## Validation ##################################
################################################################################
4 Errors found:
Parameter "sparse_index" has no description
Parameter "index" has no description
**Parameter "kind" type should use "int" instead of "integer"**
See Also section not found
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.
This is a known bug with the validator (see #25205) so just have to ignore for now
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.
LGTM
Great thanks @mackarelfish ! |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff