function#

class jsonpolars.expr.function.Lit(type: str = 'func_lit', value: Any = _REQUIRED(), dtype: Union[str, DataType, Type[DataType]] = _NOTHING(), allow_object: bool = _NOTHING())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.lit.html

class jsonpolars.expr.function.ConcatStr(type: str = 'func_concat_str', exprs: ~typing.List[IntoExpr] = <factory>, separator: str = _NOTHING(), ignore_nulls: bool = _NOTHING())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.concat_str.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Create an instance of BaseExpr from either a human created dict, or a dict created by the BaseExpr.to_dict method.

class jsonpolars.expr.function.ConcatList(type: str = 'func_concat_list', exprs: ~typing.List[IntoExpr] = <factory>)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.concat_list.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Create an instance of BaseExpr from either a human created dict, or a dict created by the BaseExpr.to_dict method.

class jsonpolars.expr.function.FuncStruct(type: str = 'func_struct', exprs: ~typing.List[IntoExpr] = <factory>, named_exprs: ~typing.Dict[str, IntoExpr] = <factory>, schema: ~typing.Optional[~typing.Dict[str, ~typing.Dict[str, ~typing.Any]]] = _NOTHING(), eager: bool = _NOTHING())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.struct.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Create an instance of BaseExpr from either a human created dict, or a dict created by the BaseExpr.to_dict method.

class jsonpolars.expr.function.Format(type: str = 'func_format', f_string: str = _REQUIRED(), exprs: ~typing.List[IntoExpr] = <factory>)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.format.html

classmethod from_dict(dct: Dict[str, Any])[source]#

Create an instance of BaseExpr from either a human created dict, or a dict created by the BaseExpr.to_dict method.

class jsonpolars.expr.function.FuncDate(type: str = 'func_date', year: DatetimeElementExpr = _REQUIRED(), month: DatetimeElementExpr = _REQUIRED(), day: DatetimeElementExpr = _REQUIRED())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.date.html

class jsonpolars.expr.function.FuncDatetime(type: str = 'func_datetime', year: DatetimeElementExpr = _REQUIRED(), month: DatetimeElementExpr = _REQUIRED(), day: DatetimeElementExpr = _REQUIRED(), hour: DatetimeElementExpr = _NOTHING(), minute: DatetimeElementExpr = _NOTHING(), second: DatetimeElementExpr = _NOTHING(), microsecond: DatetimeElementExpr = _NOTHING(), time_unit: str = _NOTHING(), time_zone: Optional[str] = _NOTHING(), ambiguous: str = _NOTHING())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.datetime.html

class jsonpolars.expr.function.Element(type: str = 'func_element')[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.element.html