-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
axis='index' or axis='columns' not widely known as alternative to axis=1 or 0 #9658
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
Comments
This would be great! I had no idea until just now |
Thanks, I saw your post on r/pystats. It'd be great if someone could go through and make sure that Or we could publicize it first and fix bugs as they're reported. |
Most of this is already done (and has been for quite a while), as the doc strings are auto-generated. That said is would be nice to audit to make sure they are in there. And as @TomAugspurger their are some functions that are not fully compliant. Further I don't recall any section which explicity mentions this, maybe should go in
|
@TomAugspurger You're welcome! I'm glad it appears I wasn't the only one that thought the use of 0 or 1 for the axis parameter was a bit esoteric. @jreback To be more explicit in the docs, how about from:
to
or
I think your example may not be as clear as my 2 suggestions. |
@pybokeh sure, pull-requests are welcome. This is just a 1-line change as these are all auto-generated. |
@jreback I'm ashamed to admit that I don't yet know how to contribute to github projects, I just know how to create my own repositories, push changes to them, and create issues. Most of it is due to my Python knowledge isn't that great since I'm a data analyst and not a software developer. But for changes to documentation, I think I can handle those. I feel bad just raising issues when I want to also be able to provide solutions or in this case improve documentation. Hopefully, I will learn how to do pull requests during my next local Python meetup group meeting this Friday. |
@pybokeh no shame! everyone starts the same way |
Or the developers page on the main pandas website. http://pandas.pydata.org/developers.html. We need to add some meat to that Contributing page on the wiki as it doesn't tell you how to push your changes to github. I will do that. |
@rockg thanks! organizing of the contributing docs is a huge plus! IIRC we even discussed ONLY having them in the docs (and pointing at them from the |
Hello, just wanted to create this issue to hopefully inspire someone to include the use of axis='index' or axis='columns' as an alternative to using axis=0 or 1 in the documentation/docstrings, since the latter form is less intuittive.
The text was updated successfully, but these errors were encountered: