Skip to content

Commit 8d3e73a

Browse files
committed
Resolve feedback; wording
1 parent 41fb078 commit 8d3e73a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

shiny/render/_dataframe.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,10 @@ class data_frame(Renderer[DataFrameResult]):
298298
is the render function name that corresponds with the `id=` used in
299299
:func:`~shiny.ui.outout_data_frame`. Internally, this method retrieves the selected
300300
row value from session's `input.<id>_selected_rows()` value. The value returned will
301-
be `None` if no rows are selected, or a tuple of integers representing the indices
302-
of the selected rows. To filter a pandas data frame down to the selected rows, use
303-
`df.iloc[list(input.<id>_selected_rows())]`.
301+
be `None` if the row selection mode is `"none"`, or a tuple of integers representing
302+
the indices of the selected rows. If no rows have been selected (while in a non-`"none"`
303+
row selection mode), an empty tuple will be returned. To filter a pandas data frame
304+
down to the selected rows, use `df.iloc[list(input.<id>_selected_rows())]`.
304305
305306
Tip
306307
----
@@ -351,7 +352,7 @@ class data_frame(Renderer[DataFrameResult]):
351352
-------
352353
:
353354
* `None` if the row selection mode is None
354-
* `tuple[int]`representing the indices of the selected rows
355+
* `tuple[int]` representing the indices of the selected rows. If no rowws are selected
355356
"""
356357

357358
data_selected: reactive.Calc_[pd.DataFrame]

0 commit comments

Comments
 (0)