struct#

class jsonpolars.expr.struct.Struct(type: str = 'struct', expr: T_EXPR = _REQUIRED())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/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.struct.StructField(type: str = 'struct_field', expr: ~typing.Optional[T_EXPR] = None, name: ~typing.Union[str, ~typing.List[str]] = _REQUIRED(), more_names: ~typing.List[str] = <factory>)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.struct.field.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.struct.StructRenameFields(type: str = 'struct_rename_fields', expr: T_EXPR = _REQUIRED(), names: List[str] = _REQUIRED())[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.struct.rename_fields.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.struct.StructWithFields(type: str = 'struct_with_fields', expr: T_EXPR = _REQUIRED(), exprs: ~typing.List[IntoExpr] = <factory>, named_exprs: ~typing.Dict[str, IntoExpr] = <factory>)[source]#

Ref: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.struct.with_fields.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.