Skip to content

Data

relationalai.semantics.frontend.base
Data(df: DataFrame, model: Model)

Represents a temporary table backed by in-memory data.

Data objects are created by Model.data (and the convenience function data). They behave like a Table, so you can refer to their columns (for example d.name or d["name"]) in queries.

Most users should not instantiate this class directly. Prefer Model.data.

DataTableConceptVariableDSLBase
 semantics
├──  frontend > base
│   └──  Model
│       └──  data
└──  data
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Build a semantic model
        └──  Declare data sources
            ├──  Use a DataFrame with Model.data
            └──  Use inline Python data with Model.data