eva.interfaces.relational.relation.EVARelation.select#

EVARelation.select(expr: str) EVARelation[source]#

Projects a set of expressions and returns a new EVARelation.

Parameters:

exprs (Union[str, List[str]]) – The expression(s) to be selected. If ‘*’ is provided, it expands to all columns in the current EVARelation.

Returns:

A EVARelation with subset (or all) of columns.

Return type:

EVARelation

Examples

>>> relation = conn.table("sample_table")

Select all columns in the EVARelation.

>>> relation.select("*")

Select all subset of columns in the EVARelation.

>>> relation.select("col1")
>>> relation.select("col1, col2")