utils_expr#

这个模块中有一系列的用于 serde 的函数.

  • 凡是以 to_jsonpolars 开头的函数都是用于将不同的 Python 数据结构转化成类 BaseExpr 对象.

  • 凡是以 to_polars 开头的函数都是用于将不同的 Python Literal 和 BaseExpr 对象转化为 polars Expr 对象.

jsonpolars.utils_expr.batch_to_jsonpolars_into_exprs(exprs: Iterable[Union[str, dict, T_EXPR]]) List[IntoExpr][source]#

Note

Intentionally not using list comprehension here. So that it tells you which expression is causing the error.

jsonpolars.utils_expr.batch_to_jsonpolars_named_into_exprs(named_exprs: Dict[str, Union[str, dict, T_EXPR]]) Dict[str, IntoExpr][source]#

Note

Intentionally not using list comprehension here. So that it tells you which expression is causing the error.

jsonpolars.utils_expr.batch_to_polars_into_exprs(exprs: Iterable[Union[str, T_EXPR]]) List[Union[str, pl.Expr]][source]#

Note

Intentionally not using list comprehension here. So that it tells you which expression is causing the error.

jsonpolars.utils_expr.batch_to_polars_named_into_exprs(named_exprs: Dict[str, Union[str, T_EXPR]]) Dict[str, Union[str, pl.Expr]][source]#

Note

Intentionally not using list comprehension here. So that it tells you which expression is causing the error.