Skip to content
Prev Previous commit
Next Next commit
Update indexing.py
  • Loading branch information
jorisvandenbossche authored Mar 11, 2018
commit 6b1fc48e19e3a58d2d3c774e9dca244b9fdc6f49
4 changes: 2 additions & 2 deletions pandas/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1924,8 +1924,8 @@ class _iAtIndexer(_ScalarAccessIndexer):
Access a single value for a row/column pair by integer position.

Similar to ``iloc``, in that both provide integer-based lookups. Use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also works on a Series, can you re-word to accomodate

Copy link
Contributor Author

@akosel akosel Mar 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point, I specified that iat works for both a DataFrame and a Series (below the comment, so Github isn't collapsing it here). Let me know if you want be to reword it any differently. I also added an example for using it on Series.

``iat`` if you only need to get or set a single value in a ``DataFrame``
or ``Series``.
``iat`` if you only need to get or set a single value in a DataFrame
or Series.

See Also
--------
Expand Down