kra.table
- kra.table.show_scrollable(df, max_height=400, max_width='100%')
Display a scrollable table in Jupyter Notebook.
- Parameters:
df (polars.DataFrame) – The DataFrame to display.
max_height (int, optional) – The maximum height of the table in pixels (default is 400).
max_width (str, optional) – The maximum width of the table (default is “100%”).
- Returns:
Displays the table in a scrollable container.
- Return type:
None
Example
>>> import polars as pl >>> from kra.table import show_scrollable >>> df = pl.DataFrame({ ... "Name": ["Alice", "Bob", "Charlie", "David"], ... "Age": [25, 30, 35, 40], ... "City": ["New York", "Los Angeles", "Chicago", "Houston ... ]}) >>> show_scrollable(df, max_height=200)