-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DOC: Fix the docstring of xs in pandas/core/generic.py #22892
Comments
I want to start contributing with this issue |
Sure, go for it. You can follow these instructions: https://python-sprints.github.io/pandas/dashboard.html Couple of things are specific to sprints, but almost everything applies. Also remember the |
I have some question.
I have deal with other examples, but I have no idea with how to declare dataframe in this case.
And this is the result of cross-section. Which statement is expected when I validate pandas.Series.xs with validate_docstrings.py?? |
|
Ok. Sorry for taking too long time. |
I'm sorry to say that I gave up this issue. |
I'd like to work on this issue |
Hi ! I will help on this one |
pandas docstring are expected to follow the format defined in https://pandas.pydata.org/pandas-docs/stable/contributing_docstring.html
This includes among other things:
transformed : Series
) but just the type (e.g.Series
) in the first line.We should make the required adjustments in the docstring of the function
xs
inpandas/core/generic.py
.We should validate the docstring with our validator (which does not validate all the formats, but some):
./scripts/validate_docstrings.py pandas.Series.xs
And we should validate the PEP-8 of the examples (note that the next command will validate the PEP-8 of all examples, just make sure that none of the shown is in the function being addressed, the rest will be fixed in separate issues):
flake8 --doctests pandas/core/generic.py
The text was updated successfully, but these errors were encountered: