Skip to content

Commit d4d518d

Browse files
committed
Fix documentation
1 parent 8aa73f8 commit d4d518d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

databricks/koalas/indexing.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -798,15 +798,15 @@ class iLocIndexer(_LocIndexerLike):
798798
Allowed inputs are:
799799
800800
- An integer for column selection, e.g. ``5``.
801+
- A list or array of integers for row selection
801802
- A list or array of integers for column selection, e.g. ``[4, 3, 0]``.
802803
- A boolean array for column selection.
803-
- A slice object with ints for column selection, e.g. ``1:7``.
804-
- A slice object with ints without start and step for row selection, e.g. ``:7``.
804+
- A slice object with ints for row and column selection, e.g. ``1:7``.
805805
806806
Not allowed inputs which pandas allows are:
807807
808-
- An integer for row selection, e.g. ``5``.
809-
- A list or array of integers for row selection, e.g. ``[4, 3, 0]``.
808+
- A list or array of integers for row selection with duplicated indexes,
809+
e.g. ``[4, 4, 0]``.
810810
- A boolean array for row selection.
811811
- A ``callable`` function with one argument (the calling Series, DataFrame
812812
or Panel) and that returns valid output for indexing (one of the above).
@@ -847,12 +847,9 @@ class iLocIndexer(_LocIndexerLike):
847847
d 4
848848
Name: 0, dtype: int64
849849
850-
A list of integers for row selection is not allowed.
851-
852850
>>> df.iloc[[0]]
853-
Traceback (most recent call last):
854-
...
855-
databricks.koalas.exceptions.SparkPandasNotImplementedError: ...
851+
a b c d
852+
0 1 2 3 4
856853
857854
With a `slice` object.
858855

0 commit comments

Comments
 (0)