API reference
python:arx:arx.dataframe.coerce_expression
function coerce_expression
coerce_expression(expr: astx.Expr, target_type: astx.DataType, *, context: str) -> astx.Expr
Source: packages/arx/src/arx/dataframe.py:144
Coerce one parsed expression into one declared DataFrame type.
Parameters
-
expr โ Expression to process.; Type: astx.Expr
-
target_type โ Destination type for the conversion.; Type: astx.DataType
-
context โ Context for the operation.; Type: str
Returns
Result of this operation: coerce one parsed expression into one declared DataFrame type.; Type: astx.Expr