rstoolbox.utils.use_qgrid(df, **kwargs)¶Create a QgridWidget object from the
qgrid library in
Jupyter Notebooks.
This allows the creation of a interactive table in a cell with a whole lot of functionalities (see qgrid documentation)
A part from the DataFrame, one can provide any named parameter that can
be applied to qgrid.show_grid.
The only difference is that if there are more than 4 columns, the key forceFitColumns
from the attribute grid_options is forced into False.
The actual DataFrame can be retrieved back with:
qwdf = rstoolbox.utils.use_qgrid(df)
qdf = qwdf.get_changed_df()
# OR
qdf = qwdf.get_selected_df()
See more in the documentation for get_changed_df or get_selected_df.
Best used together with format_Ipython().
| Parameters: | df ( |
||
|---|---|---|---|
| Returns: | |||
| Raises: |
|