fenic.api.functions.core
Core functions for Fenic DataFrames.
Functions:
-
col–Creates a Column expression referencing a column in the DataFrame.
-
lit–Creates a Column expression representing a literal value.
col
col(col_name: str) -> Column
Creates a Column expression referencing a column in the DataFrame.
Parameters:
-
col_name(str) –Name of the column to reference
Returns:
-
Column–A Column expression for the specified column
Raises:
-
TypeError–If colName is not a string
Source code in src/fenic/api/functions/core.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
lit
lit(value: Any) -> Column
Creates a Column expression representing a literal value.
Parameters:
-
value(Any) –The literal value to create a column for
Returns:
-
Column–A Column expression representing the literal value
Raises:
-
ValueError–If the type of the value cannot be inferred
Source code in src/fenic/api/functions/core.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |