Skip to content

Let TableReport accept skrub expressions as input #1477

Description

@ogrisel

Problem Description

At the moment, the following code snippet:

import polars as pl
import skrub

skrub.TableReport(skrub.var("df", pl.DataFrame({"a": range(3)})))

raises NotImplementedError while the usual:

skrub.TableReport(pl.DataFrame({"a": range(3)}))

works as expected which can be confusing.

Feature Description

I agree that any skrub expression wrapping a dataframe naturally embeds the TableReport view as part of their HTML representation for Jupyter notebook when they end up in the output of a notebook cell.

However, I suspect that some users might want to use TableReport programmatically outside of any notebook and the above NotImplementedError exception can be confusing.

Alternative Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions