Skip to content

Commit e3bf6ee

Browse files
committed
doc: Added iloc dtype conversion behaviours
1 parent 6ad23cf commit e3bf6ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/indexing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ def iloc(self) -> _iLocIndexer:
182182
``.iloc`` will raise ``IndexError`` if a requested indexer is
183183
out-of-bounds, except *slice* indexers which allow out-of-bounds
184184
indexing (this conforms with python/numpy *slice* semantics).
185+
186+
It is also worth noting, iloc converts all elements returned into the same
187+
pandas dtype and all numeric dtype conversions follow the numpy promotion
188+
rules.
185189
186190
See more at :ref:`Selection by Position <indexing.integer>`.
187191

0 commit comments

Comments
 (0)