@@ -64,10 +64,11 @@ class data_frame(
6464 ]
6565):
6666 """
67- Decorator for a function that returns a [pandas](https://pandas.pydata.org/) or
68- [polars](https://pola.rs/) `DataFrame` object to render as an interactive table or
69- grid. Features fast virtualized scrolling, sorting, filtering, and row selection
70- (single or multiple).
67+ Decorator for a function that returns a [pandas](https://pandas.pydata.org/),
68+ [polars](https://pola.rs/), or eager
69+ [`narwhals`](https://narwhals-dev.github.io/narwhals/) compatible `DataFrame` object
70+ to render as an interactive table or grid. Features fast virtualized scrolling,
71+ sorting, filtering, and row selection (single or multiple).
7172
7273 Returns
7374 -------
@@ -77,8 +78,10 @@ class data_frame(
7778 1. A :class:`~shiny.render.DataGrid` or :class:`~shiny.render.DataTable` object,
7879 which can be used to customize the appearance and behavior of the data frame
7980 output.
80- 2. A pandas `DataFrame` object or a polars `DataFrame` object. This object will
81- be internally upgraded to `shiny.render.DataGrid(df)`.
81+ 2. A [pandas](https://pandas.pydata.org/), [polars](https://pola.rs/), or eager
82+ [`narwhals`](https://narwhals-dev.github.io/narwhals/) compatible `DataFrame`
83+ object. This object will be internally upgraded to a default
84+ `shiny.render.DataGrid(df)`.
8285
8386 Row selection
8487 -------------
@@ -228,7 +231,9 @@ def data_view(self, *, selected: bool = False) -> IntoDataFrameT:
228231
229232 See Also
230233 --------
231- * [`pandas.DataFrame.copy` API documentation]h(ttps://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.copy.html)
234+ * [`pandas.DataFrame.copy` API documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.copy.html)
235+ * [`polars.DataFrame.clone` API documentation](https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.clone.html)
236+ * [`narwhals.DataFrame.clone` API documentation](https://narwhals-dev.github.io/narwhals/api-reference/dataframe/#narwhals.dataframe.DataFrame.clone)
232237 """
233238 # Return reactive calculations so that they can be cached for other calculations
234239 if selected :
0 commit comments