-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
DOC: update the DataFrame.iat[] docstring #20219
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
Changes from 1 commit
1a34130
fa0edf7
2565642
e8233e5
88c23c0
6b1fc48
aa387ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1920,11 +1920,35 @@ def _convert_key(self, key, is_setter=False): | |
|
|
||
|
|
||
| class _iAtIndexer(_ScalarAccessIndexer): | ||
| """Fast integer location scalar accessor. | ||
| """ | ||
| Selects a single value for a row/column pair by integer position. | ||
|
|
||
| Similarly to ``iloc``, ``iat`` provides **integer** based lookups. | ||
| You can also set using these indexers. | ||
| Useful if performance is a major concern and you only need to | ||
|
||
| get or set a value at a particular row/column. | ||
|
|
||
| See Also | ||
| -------- | ||
| at : Selects a single value for a row/column label pair | ||
|
||
| loc : Selects a group of rows and columns by label(s) | ||
| iloc : Selects group of rows and columns by integer position(s) | ||
|
|
||
| Returns | ||
|
||
| ------- | ||
| None | ||
|
|
||
| Examples | ||
| -------- | ||
| >>> df = pd.DataFrame([[0,2,3], [0,4,1], [10,20,30]]) | ||
|
||
| >>> df | ||
| 0 1 2 | ||
| 0 0 2 3 | ||
| 1 0 4 1 | ||
| 2 10 20 30 | ||
| >>> df.iat[1, 2] | ||
| 1 | ||
| >>> df.iat[1, 2] = 10 | ||
| >>> df.iat[1, 2] | ||
| 10 | ||
| """ | ||
|
|
||
| _takeable = True | ||
|
|
||
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.
Selects -> Select
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.
BTW, I think "Select" is not the correct term, as you can also use this to set values