Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork18.5k
DOC: Expand on different Getitem uses#60806
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
doc/source/user_guide/10min.rst Outdated
.. ipython:: python | ||
df["A"] | ||
If the label only contains letters, numbers, and underscores, you can | ||
alternatively use dot notation: |
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.
Is "dot notation" the right term?
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.
Get attribute (getattr) notation would be more correct
.. ipython:: python | ||
df["A"] | ||
If the label only contains letters, numbers, and underscores, you can |
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.
Mind confirming I have this right?
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.
pandas allows strings that passisidentifier
https://docs.python.org/3/library/stdtypes.html#str.isidentifier
This pull request is stale because it has been open for thirty days with no activity. Pleaseupdate and respond to this comment if you're still interested in working on this. |
I'll pick this back up soon. |
Uh oh!
There was an error while loading.Please reload this page.
1321954
intopandas-dev:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@afeld and@datapythonista |
This is confusing to my students, so figured it would be helpful to call it out explicitly.
closes #xxxx (Replace xxxx with the GitHub issue number)added andpassed if fixing a bug or adding a new featureAddedtype annotations to new arguments/methods/functions.Added an entry in the latestdoc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.