Skip to content

Feat: Add precomputed fields #18

@hadim

Description

@hadim

We need pydantic 2.x to be able to do that without an horrible hack :-) No rush and blocked by conda-forge/pydantic-feedstock#82

The idea is to add a few pre-computed fields whenever it makes sense.

A few examples for Dataset:

  repr_dict["n_datapoints"] = len(self)
  repr_dict["n_columns"] = len(self.table.columns)
  repr_dict["dataset_size_mb"] = 128

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAnnotates any PR that adds new features; Used in the release process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions